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 8, 2024 22:15Steve HanSteve HanScore: 31,781Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 8, 2024 22:1631,701324,061,108263,118,50402,273,280
2May 8, 2024 22:1631,729330,600,581263,351,64502,277,376
3May 8, 2024 22:1531,752330,972,360263,543,05002,273,280
4May 8, 2024 22:1631,781325,098,730263,786,24702,260,992
5May 8, 2024 22:1531,813330,586,197264,046,76102,273,280
6May 8, 2024 22:1532,097333,886,911266,403,51002,269,184