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 listApr 26, 2026 21:36zielajzielajError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 26, 2026 21:37046,829,64327,266,0001,009,0002,428,928expected "53691900628707351 ", got "53691900780665502 "
2Apr 26, 2026 21:373,39640,910,16227,184,0001,006,0002,424,832
3Apr 26, 2026 21:373,40546,599,83727,258,0001,009,0002,310,144
4Apr 26, 2026 21:373,46448,179,66626,774,0001,983,0002,306,048
5Apr 26, 2026 21:373,46948,360,04226,813,0001,986,0002,428,928
6Apr 26, 2026 21:373,47841,222,17526,881,0001,991,0002,428,928
7Apr 26, 2026 21:373,48048,990,97326,895,0001,992,0002,424,832
8Apr 26, 2026 21:373,50146,509,69126,056,0003,006,0002,428,928
9Apr 26, 2026 21:373,57943,982,04327,733,0001,980,0002,322,432