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 8, 2023 10:58Robert BurkeRobert BurkeScore: 7,309Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 8, 2023 10:587,24087,802,56359,089,0001,001,0002,277,376
2Nov 8, 2023 10:587,25285,896,52559,192,0001,003,0002,437,120
3Nov 8, 2023 10:587,25283,116,13658,185,0002,006,0002,437,120
4Nov 8, 2023 10:587,26183,820,12659,259,0001,004,0002,428,928
5Nov 8, 2023 10:587,27983,287,48459,407,0001,006,0002,420,736
6Nov 8, 2023 10:587,28190,152,93060,434,00002,420,736
7Nov 8, 2023 10:587,28983,567,86759,489,0001,008,0002,277,376
8Nov 8, 2023 10:587,29080,583,57560,503,00002,433,024
9Nov 8, 2023 10:587,29185,234,68160,518,00002,428,928
10Nov 8, 2023 10:587,30985,336,59660,665,00002,273,280
11Nov 8, 2023 10:587,30983,182,27360,668,00002,277,376
12Nov 8, 2023 10:587,31186,146,01559,669,0001,011,0002,424,832
13Nov 8, 2023 10:587,32584,416,97258,807,0001,993,0002,510,848
14Nov 8, 2023 10:587,32888,855,64659,829,000997,0002,277,376
15Nov 8, 2023 10:587,32987,167,35860,827,00002,539,520
16Nov 8, 2023 10:587,33282,923,33158,859,0001,995,0002,277,376
17Nov 8, 2023 10:587,34080,913,33859,923,000998,0002,539,520
18Nov 8, 2023 10:587,37283,388,79760,183,0001,003,0002,437,120
19Nov 8, 2023 10:587,663128,569,21763,599,41502,183,168
20Nov 8, 2023 10:587,665122,576,57563,615,54002,174,976
21Nov 8, 2023 10:587,725127,373,79564,119,73102,297,856