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 listJul 18, 2022 21:22Simon MaracheSimon MaracheScore: 389,020Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 18, 2022 21:22385,5483,269,457,2203,200,050,29902,187,264
2Jul 18, 2022 21:22389,0203,292,328,2443,228,866,18402,195,456
3Jul 18, 2022 21:22392,8323,321,955,0353,260,501,84502,207,744