Parse integers Sergey Svistunov

Compute the sum of integers read from STDIN as fast as possible.

Input: 50 000 000 lines, each containing one integer in the range [0; 2147483647].

629871117
2024562523
1372689083
1021777120
2111176472

Output: The uint64 sum of all numbers, printed as a decimal string.

Note: Integer overflow is expected – use a 64-bit accumulator.

Back to listMay 29, 2024 16:29GraceGraceScore: 6,639Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 29, 2024 16:296,54478,013,78052,302,0002,011,0002,433,024
2May 29, 2024 16:296,59182,601,47153,693,0001,013,0002,449,408
3May 29, 2024 16:296,61977,105,18652,937,0001,997,0002,445,312
4May 29, 2024 16:296,61976,721,83453,940,000998,0002,433,024
5May 29, 2024 16:296,63280,994,90253,042,0002,001,0002,289,664
6May 29, 2024 16:296,63878,285,63353,091,0002,003,0002,441,216
7May 29, 2024 16:296,63877,340,30053,093,0002,003,0002,437,120
8May 29, 2024 16:296,63979,717,14354,100,0001,001,0002,289,664
9May 29, 2024 16:296,65380,048,04153,215,0002,008,0002,445,312
10May 29, 2024 16:296,65376,441,47354,216,0001,004,0002,289,664
11May 29, 2024 16:296,66077,169,17353,265,0002,010,0002,437,120
12May 29, 2024 16:296,67880,726,58854,421,0001,007,0002,289,664
13May 29, 2024 16:297,105124,242,42158,970,49402,195,456
14May 29, 2024 16:297,107128,673,03158,987,51402,195,456
15May 29, 2024 16:297,375125,466,14461,213,05802,322,432