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 25, 2024 13:18GraceGraceScore: 7,268Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 25, 2024 13:187,229126,452,07460,003,70002,297,856
2May 25, 2024 13:187,232124,351,27960,021,69802,281,472
3May 25, 2024 13:187,24980,824,95458,158,0002,005,0002,273,280
4May 25, 2024 13:187,25283,910,83959,186,0001,003,0002,273,280
5May 25, 2024 13:187,26083,183,32658,251,0002,008,0002,285,568
6May 25, 2024 13:187,26181,933,69158,261,0002,009,0002,285,568
7May 25, 2024 13:187,26781,478,85058,306,0002,010,0002,285,568
8May 25, 2024 13:187,26885,760,22058,311,0002,010,0002,285,568
9May 25, 2024 13:187,27582,450,83159,374,0001,006,0002,367,488
10May 25, 2024 13:187,37884,728,58059,230,0002,007,0002,285,568
11May 25, 2024 13:187,380115,856,54961,252,46202,297,856
12May 25, 2024 13:187,48184,366,43661,093,0001,001,0002,531,328
13May 25, 2024 13:188,60595,799,16270,414,0001,005,0002,519,040
14May 25, 2024 13:188,652101,406,31670,813,000997,0002,285,568
15May 25, 2024 13:189,02499,901,40573,901,000998,0002,285,568