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 listNov 1, 2026 19:23Dinu GoyalDinu GoyalError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 1, 2026 19:260516,401,065489,354,00013,881,00020,480expected "53688576890174524 ", got "53688573462964775 "
2Nov 1, 2026 19:260513,829,233488,983,00013,988,0002,113,536expected "53685179147160032 ", got "53685172974973351 "
3Nov 1, 2026 19:260514,040,184489,129,00014,048,0002,113,536expected "53680360666324240 ", got "53680355450271735 "