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 10, 2024 19:29Matt StuchlikMatt StuchlikScore: 18,864Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 10, 2024 19:2918,202229,853,958151,078,10302,297,856
2Apr 10, 2024 19:2918,833227,028,733156,312,87702,293,760
3Apr 10, 2024 19:2918,840228,348,495156,370,26602,285,568
4Apr 11, 2024 06:0218,864225,452,569156,569,59502,289,664
5Apr 11, 2024 06:0220,035228,091,074166,286,68502,293,760
6Apr 11, 2024 06:0220,035221,143,623166,292,73502,289,664