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 listJan 1, 2023 15:51Jack FrigaardJack FrigaardScore: 5,042Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 1, 2023 15:515,011118,879,98141,594,80002,207,744
2Jan 1, 2023 15:515,037108,150,43741,806,21702,211,840
3Jan 1, 2023 15:515,03966,738,12138,837,0002,987,0002,465,792
4Jan 1, 2023 15:515,03966,141,04238,833,0002,987,0002,523,136
5Jan 1, 2023 15:515,04164,268,49538,850,0002,988,0002,523,136
6Jan 1, 2023 15:515,042104,939,08441,846,03002,224,128
7Jan 1, 2023 15:515,04265,371,62440,829,0001,020,0002,523,136
8Jan 1, 2023 15:515,04267,459,36238,863,0002,989,0002,465,792
9Jan 1, 2023 15:515,04367,871,57338,869,0002,989,0002,514,944
10Jan 1, 2023 15:515,04369,767,02138,870,0002,990,0002,449,408
11Jan 1, 2023 15:515,04563,774,36839,878,0001,993,0002,523,136
12Jan 1, 2023 15:515,08264,447,13239,169,0003,013,0002,523,136
13Jan 1, 2023 15:515,08766,060,66639,207,0003,015,0002,449,408
14Jan 1, 2023 15:515,10267,324,24739,320,0003,024,0002,523,136
15Jan 1, 2023 15:515,11070,312,99041,406,0001,009,0002,523,136