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 08:20GraceGraceError
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 08:2000000Error: expected "53679745440107107 ", got "53679744784681571 "
2May 31, 2024 08:2000000Error: expected "53685057254048662 ", got "53685056598688662 "
3May 31, 2024 08:2000000Error: expected "53688503546199943 ", got "53688503546134407 "
4May 31, 2024 08:205,509114,895,80145,721,75202,285,568
5May 31, 2024 08:205,514115,316,81745,762,83002,289,664
6May 31, 2024 08:205,514127,059,03745,762,33902,289,664
7May 31, 2024 08:205,517108,544,22445,794,69202,256,896
8May 31, 2024 08:205,533103,653,91745,927,10902,281,472
9May 31, 2024 08:205,543107,534,91846,010,19302,289,664
10May 31, 2024 08:205,544126,226,68346,011,31702,289,664
11May 31, 2024 08:205,551108,321,57746,076,72502,277,376
12May 31, 2024 08:205,568102,154,16446,212,36102,281,472
13May 31, 2024 08:205,584114,602,36546,350,50002,281,472
14May 31, 2024 08:205,610105,631,03546,560,69702,285,568
15May 31, 2024 08:205,657121,894,96446,956,57102,289,664