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 16, 2024 02:11zielajzielajScore: 3,601Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 16, 2024 02:113,54452,312,60729,413,00002,523,136
2Nov 16, 2024 02:113,54852,697,26528,435,0001,015,0002,351,104
3Nov 16, 2024 02:113,54848,292,28629,452,00002,347,008
4Nov 16, 2024 02:103,55354,072,63228,474,0001,016,0002,527,232
5Nov 16, 2024 02:113,56653,873,64828,576,0001,020,0002,527,232
6Nov 16, 2024 02:113,56856,554,83328,593,0001,021,0002,347,008
7Nov 16, 2024 02:113,59656,292,92327,855,0001,989,0002,338,816
8Nov 16, 2024 02:113,59762,683,27527,861,0001,990,0002,527,232
9Nov 16, 2024 02:113,59861,388,91227,870,0001,990,0002,359,296
10Nov 16, 2024 02:113,60154,293,22128,889,000996,0002,523,136
11Nov 16, 2024 02:103,60351,271,35727,914,0001,993,0002,351,104
12Nov 16, 2024 02:103,61757,131,34228,021,0002,001,0002,281,472
13Nov 16, 2024 02:113,71757,670,48528,858,0001,990,0002,363,392
14Nov 16, 2024 02:103,73151,161,20629,971,000999,0002,277,376
15Nov 16, 2024 02:103,77255,766,54829,288,0002,019,0002,277,376
16Nov 16, 2024 02:103,79052,511,48630,446,0001,014,0002,531,328
17Nov 16, 2024 02:113,80862,439,72531,603,00002,363,392
18Nov 16, 2024 02:113,83957,883,86629,873,0001,991,0002,359,296