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 listApr 29, 2024 14:35Steve HanSteve HanScore: 16,208Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2024 14:3516,138200,151,558133,944,97402,293,760
2Apr 29, 2024 14:3616,141198,297,313133,974,03102,297,856
3Apr 29, 2024 14:3516,144199,819,827133,995,56202,293,760
4Apr 29, 2024 14:3616,165190,687,698134,166,16102,293,760
5Apr 29, 2024 14:3516,202195,833,107134,474,38602,306,048
6Apr 29, 2024 14:3516,205195,225,170134,504,71802,297,856
7Apr 29, 2024 14:3616,208197,689,060134,523,05502,297,856
8Apr 29, 2024 14:3617,060205,673,272141,596,73402,293,760
9Apr 29, 2024 14:3617,072198,328,073141,694,26302,306,048
10Apr 29, 2024 14:3617,085204,940,732141,802,27802,179,072
11Apr 29, 2024 14:3517,113203,560,009142,036,35502,174,976
12Apr 29, 2024 14:3517,134194,905,247142,212,48802,174,976