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 13:24GraceGraceError
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 13:2400000Error: expected "53686366290057004 ", got "53686536863486084 "
2May 31, 2024 13:245,492107,063,86245,587,16902,289,664
3May 31, 2024 13:245,498110,821,70145,635,08102,289,664
4May 31, 2024 13:245,502114,830,10245,664,14302,281,472
5May 31, 2024 13:245,508108,406,23945,718,56702,285,568
6May 31, 2024 13:245,518108,716,10945,800,54702,285,568
7May 31, 2024 13:245,51885,854,32045,802,40502,289,664
8May 31, 2024 13:245,52597,401,62545,858,62002,281,472
9May 31, 2024 13:245,641120,213,66246,819,94802,281,472
10May 31, 2024 13:245,785105,907,95748,016,83602,277,376