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 11:19GraceGraceError
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 11:1900000Error: expected "53684878171953062 ", got "53684878165399462 "
2May 31, 2024 11:1900000Error: expected "53685758418706156 ", got "53685758418640620 "
3May 31, 2024 11:1900000Error: expected "53682549949034623 ", got "53682549948969087 "
4May 31, 2024 11:195,484100,778,94845,513,37302,289,664
5May 31, 2024 11:195,485119,734,24945,529,42102,289,664
6May 31, 2024 11:195,485108,326,66145,523,29602,293,760
7May 31, 2024 11:195,487120,955,10145,543,95902,277,376
8May 31, 2024 11:195,489107,940,08645,558,43502,285,568
9May 31, 2024 11:195,491113,108,73945,577,54702,285,568
10May 31, 2024 11:195,491103,535,96545,575,44602,281,472
11May 31, 2024 11:195,491108,651,92445,577,95202,285,568
12May 31, 2024 11:195,496101,518,26945,616,21202,285,568
13May 31, 2024 11:195,503119,633,92745,678,24102,293,760
14May 31, 2024 11:195,529103,371,73345,894,84402,281,472
15May 31, 2024 11:195,531112,403,00245,906,51102,273,280
16May 31, 2024 11:195,544107,168,54246,016,87202,289,664
17May 31, 2024 11:195,552116,853,70546,079,97802,277,376
18May 31, 2024 11:195,581103,165,94746,319,22702,281,472