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 21, 2025 17:31vahookvahookError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 21, 2025 17:2800000Error: expected "53690046046541685 ", got "53690043313247729 "stderr
2May 21, 2025 17:3000000Error: expected "53693027673867843 ", got "53693453720109416 "stderr
3May 21, 2025 17:314,45756,790,07932,993,0003,999,0002,469,888
4May 21, 2025 17:314,49358,717,20435,278,0002,015,0002,428,928
5May 21, 2025 17:314,49461,317,33033,269,0004,032,0002,273,280
6May 21, 2025 17:314,49566,702,49433,275,0004,033,0002,424,832
7May 21, 2025 17:314,49662,503,05534,288,0003,025,0002,420,736
8May 21, 2025 17:314,50066,945,41134,320,0003,028,0002,428,928
9May 21, 2025 17:314,50661,251,95935,375,0002,021,0002,428,928
10May 21, 2025 17:314,51765,029,48334,453,0003,039,0002,273,280
11May 21, 2025 17:314,52056,753,25835,491,0002,028,0002,273,280
12May 21, 2025 17:314,55865,933,67532,856,0004,978,0002,273,280
13May 21, 2025 17:314,60062,776,81136,168,0002,009,0002,273,280
14May 21, 2025 17:314,61462,027,36736,280,0002,015,0002,273,280