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 15, 2024 02:23zielajzielajScore: 3,608Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 15, 2024 02:233,55352,908,44128,472,0001,016,0002,351,104
2Nov 15, 2024 02:233,55954,002,95129,541,00002,351,104
3Nov 15, 2024 02:233,57953,556,18828,679,0001,024,0002,527,232
4Nov 15, 2024 02:353,59555,952,75027,852,0001,989,0002,523,136
5Nov 15, 2024 02:233,59655,876,59427,854,0001,989,0002,523,136
6Nov 15, 2024 02:353,59757,699,87027,866,0001,990,0002,527,232
7Nov 15, 2024 02:233,59855,181,28128,866,000995,0002,523,136
8Nov 15, 2024 02:233,60750,127,23327,945,0001,996,0002,338,816
9Nov 15, 2024 02:233,60851,880,29627,947,0001,996,0002,527,232
10Nov 15, 2024 02:233,60852,945,35127,952,0001,996,0002,355,200
11Nov 15, 2024 02:233,62358,200,55628,068,0002,004,0002,347,008
12Nov 15, 2024 02:353,62553,158,91828,085,0002,006,0002,347,008
13Nov 15, 2024 02:353,74760,137,99530,099,0001,003,0002,359,296
14Nov 15, 2024 02:233,75457,007,95630,155,0001,005,0002,359,296
15Nov 15, 2024 02:353,75554,142,49730,160,0001,005,0002,363,392
16Nov 15, 2024 02:353,76453,562,09330,232,0001,007,0002,367,488
17Nov 15, 2024 02:233,77755,848,29230,342,0001,011,0002,277,376
18Nov 15, 2024 02:233,81360,262,84031,646,00002,359,296