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 25, 2026 23:26zielajzielajError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 25, 2026 23:26049,571,06327,012,0002,000,0002,351,104expected "53691960762015607 ", got "X3693292934031188 "stderr
2Apr 25, 2026 23:26046,140,79829,522,0001,018,0002,334,720expected "53680390684778626 ", got "X3680995721280948 "stderr
3Apr 25, 2026 23:26046,867,11228,533,0001,019,0002,355,200expected "53684362827675934 ", got "X3685283703948274 "stderr