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 31, 2024 04:25GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 31, 2024 04:2600000Error: expected "53687012199109006 ", got "53687012192555406 "
2May 31, 2024 04:2600000Error: expected "53681901283208545 ", got "53681901276654945 "
3May 31, 2024 04:25279,4822,380,240,9412,319,701,02802,297,856
4May 31, 2024 04:25279,4872,379,920,7172,319,741,37202,179,072
5May 31, 2024 04:25279,5012,391,960,6292,319,860,22902,293,760
6May 31, 2024 04:25279,5052,375,597,3262,319,894,05302,297,856
7May 31, 2024 04:25279,5092,393,254,3952,319,923,62902,293,760
8May 31, 2024 04:25279,5122,377,466,3152,319,952,42702,289,664
9May 31, 2024 04:25279,5272,385,749,9092,320,074,08202,174,976
10May 31, 2024 04:25279,5392,384,790,8872,320,176,44802,179,072
11May 31, 2024 04:25279,5572,387,366,8932,320,324,87402,297,856