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 30, 2024 19:36zielajzielajScore: 3,868Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 30, 2024 19:363,77962,553,36031,365,00002,478,080
2Nov 30, 2024 19:363,79253,951,26831,472,00002,469,888
3Nov 30, 2024 19:363,83356,105,19130,816,000994,0002,289,664
4Nov 30, 2024 19:363,86856,047,04330,100,0002,006,0002,342,912
5Nov 30, 2024 19:363,88856,072,26530,257,0002,017,0002,347,008
6Nov 30, 2024 19:363,92559,810,23232,579,00002,510,848