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 listSep 27, 2022 11:57PhibPhibScore: 66,495Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 27, 2022 11:5766,210607,684,180549,541,35902,289,664
2Sep 27, 2022 11:5666,276617,081,327550,092,28902,252,800
3Sep 27, 2022 11:5666,438612,856,205551,434,71302,260,992
4Sep 27, 2022 11:5666,495631,066,222551,912,62202,285,568
5Sep 27, 2022 11:5766,554612,005,943552,399,04402,269,184
6Sep 27, 2022 11:5766,590609,219,299552,699,32902,281,472