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 listMay 3, 2024 12:20Steve HanSteve HanScore: 51,757Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 3, 2024 12:2051,695492,767,159429,070,92202,289,664
2May 3, 2024 12:1951,700489,305,359429,110,89202,289,664
3May 3, 2024 12:1951,732490,497,237429,377,82702,289,664
4May 3, 2024 12:1851,737486,625,978429,416,70302,289,664
5May 3, 2024 12:1851,757487,545,652429,581,61202,289,664
6May 3, 2024 12:1851,765502,712,932429,645,65802,297,856
7May 3, 2024 12:1951,783491,623,429429,800,38602,289,664
8May 3, 2024 12:2051,792491,384,278429,874,87602,289,664
9May 3, 2024 12:2051,799486,892,450429,930,86602,281,472