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 25, 2024 12:34GraceGraceScore: 7,872Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 25, 2024 12:347,288122,626,48060,487,59802,293,760
2May 25, 2024 12:347,304121,905,50560,626,83402,301,952
3May 25, 2024 12:347,305114,456,68860,628,56802,301,952
4May 25, 2024 12:347,80993,918,91963,820,000997,0002,285,568
5May 25, 2024 12:347,81499,282,13362,865,0001,995,0002,285,568
6May 25, 2024 12:347,86492,213,79863,265,0002,008,0002,285,568
7May 25, 2024 12:347,86487,433,43564,267,0001,004,0002,285,568
8May 25, 2024 12:347,87292,162,99464,336,0001,005,0002,285,568
9May 25, 2024 12:347,87490,477,59064,348,0001,005,0002,527,232
10May 25, 2024 12:347,87786,145,85064,373,0001,005,0002,392,064
11May 25, 2024 12:347,88188,750,70764,410,0001,006,0002,285,568
12May 25, 2024 12:347,88485,184,72965,440,00002,285,568
13May 25, 2024 12:349,948107,550,64081,565,0001,006,0002,269,184
14May 25, 2024 12:349,958108,417,35382,655,00002,273,280
15May 25, 2024 12:349,975109,265,87080,798,0001,995,0002,265,088