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 15:32GraceGraceError
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 15:3200000Error: expected "53684122364092896 ", got "53684131874600350 "
2May 31, 2024 15:325,22469,162,54843,361,00002,273,280
3May 31, 2024 15:325,22971,048,39142,390,0001,009,0002,273,280
4May 31, 2024 15:325,23665,349,58443,461,00002,273,280
5May 31, 2024 15:325,23970,206,91742,471,0001,011,0002,273,280
6May 31, 2024 15:325,23966,616,71243,485,00002,273,280
7May 31, 2024 15:325,24164,030,19043,504,00002,404,352
8May 31, 2024 15:325,24764,747,75243,546,00002,400,256
9May 31, 2024 15:325,25069,140,51743,572,00002,273,280
10May 31, 2024 15:325,25070,026,57442,565,0001,013,0002,273,280
11May 31, 2024 15:325,25467,933,10043,606,00002,273,280
12May 31, 2024 15:325,28073,680,00742,825,000995,0002,273,280
13May 31, 2024 15:325,28372,792,93642,851,000996,0002,273,280
14May 31, 2024 15:325,451122,147,31345,239,75102,289,664
15May 31, 2024 15:325,452110,482,02845,254,55502,293,760
16May 31, 2024 15:325,468114,874,22245,385,36702,256,896
17May 31, 2024 15:325,479127,763,42745,477,37902,285,568
18May 31, 2024 15:325,490111,815,98945,570,24602,281,472
19May 31, 2024 15:325,527122,290,36945,874,37902,289,664
20May 31, 2024 15:325,556117,263,82046,113,84502,285,568
21May 31, 2024 15:325,600109,797,08346,482,40102,281,472
22May 31, 2024 15:325,655108,007,12446,934,74102,277,376