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 19:00Steve HanSteve HanScore: 16,454Success
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 19:0016,319192,604,892135,448,77802,256,896
2Apr 29, 2024 19:0016,371197,503,442135,877,99002,260,992
3Apr 29, 2024 19:0116,415193,286,157136,241,83702,260,992
4Apr 29, 2024 19:0116,454200,259,244136,569,32102,273,280
5Apr 29, 2024 19:0016,506195,560,727137,001,50802,273,280
6Apr 29, 2024 19:0117,174214,439,536142,540,10802,265,088