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 listApr 12, 2024 11:18Matt StuchlikMatt StuchlikError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 12, 2024 11:1900000Error: expected "53689407881594849 ", got "53689407881569249 "
2Apr 12, 2024 11:2216,607203,119,299137,842,14702,285,568
3Apr 12, 2024 11:1816,612202,266,418137,876,32902,289,664
4Apr 12, 2024 11:2216,614196,139,909137,892,25402,289,664
5Apr 12, 2024 11:2216,616192,704,287137,915,06402,285,568
6Apr 12, 2024 11:1816,618203,763,721137,932,23102,289,664
7Apr 12, 2024 11:1816,629215,650,299138,021,50302,281,472
8Apr 12, 2024 11:1716,633203,099,196138,057,52402,289,664
9Apr 12, 2024 11:1716,680196,383,846138,441,83502,289,664
10Apr 12, 2024 11:1816,997168,418,224139,070,0002,001,0002,273,280
11Apr 12, 2024 11:1816,997166,555,079139,071,0002,001,0002,273,280
12Apr 12, 2024 11:1816,997164,921,244139,073,0002,001,0002,285,568
13Apr 12, 2024 11:1817,000160,782,263139,102,0002,001,0002,285,568
14Apr 12, 2024 11:1817,003164,483,660139,122,0002,001,0002,285,568
15Apr 12, 2024 11:1817,004162,029,089139,130,0002,001,0002,285,568
16Apr 12, 2024 11:1817,016164,753,536139,233,0002,003,0002,277,376
17Apr 12, 2024 11:1817,020163,413,242140,263,0001,001,0002,273,280
18Apr 12, 2024 11:1817,021166,592,864139,272,0002,003,0002,285,568
19Apr 12, 2024 11:1717,442197,475,671144,769,23402,293,760