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 listNov 25, 2023 19:14Robert BurkeRobert BurkeScore: 7,629Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 25, 2023 19:147,58189,980,81660,925,0001,997,0002,277,376
2Nov 25, 2023 19:147,58488,080,13960,952,0001,998,0002,510,848
3Nov 25, 2023 19:147,60083,612,51362,081,0001,001,0002,277,376
4Nov 25, 2023 19:147,60683,105,49362,130,0001,002,0002,424,832
5Nov 25, 2023 19:147,61090,955,90162,158,0001,002,0002,277,376
6Nov 25, 2023 19:147,61085,052,75062,159,0001,002,0002,539,520
7Nov 25, 2023 19:147,62788,083,27662,298,0001,004,0002,539,520
8Nov 25, 2023 19:147,62986,823,12763,317,00002,277,376
9Nov 25, 2023 19:147,64082,485,20062,410,0001,006,0002,277,376
10Nov 25, 2023 19:147,64285,137,02462,423,0001,006,0002,535,424
11Nov 25, 2023 19:147,65988,753,45163,571,00002,433,024
12Nov 25, 2023 19:147,66094,669,99562,570,0001,009,0002,539,520
13Nov 25, 2023 19:147,717120,931,05364,050,09002,293,760
14Nov 25, 2023 19:147,734118,443,39364,193,44602,174,976
15Nov 25, 2023 19:147,743135,068,54964,266,35502,289,664