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 listJul 15, 2022 00:44Robert BurkeRobert BurkeScore: 8,197Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 15, 2022 00:448,17197,770,15465,822,0001,994,0002,531,328
2Jul 15, 2022 00:448,18190,875,56466,902,000998,0002,424,832
3Jul 15, 2022 00:448,18794,405,36566,955,000999,0002,433,024
4Jul 15, 2022 00:448,18892,453,29465,962,0001,998,0002,527,232
5Jul 15, 2022 00:448,19092,536,90066,979,000999,0002,424,832
6Jul 15, 2022 00:448,19086,861,39866,980,000999,0002,412,544
7Jul 15, 2022 00:448,19591,787,64367,019,0001,000,0002,424,832
8Jul 15, 2022 00:448,19790,337,14468,037,00002,424,832
9Jul 15, 2022 00:448,20287,565,75567,075,0001,001,0002,531,328
10Jul 15, 2022 00:448,20289,787,22567,077,0001,001,0002,531,328
11Jul 15, 2022 00:448,20391,163,80968,089,00002,428,928
12Jul 15, 2022 00:448,21495,696,97466,169,0002,005,0002,527,232
13Jul 15, 2022 00:448,716142,418,78272,343,21302,183,168
14Jul 15, 2022 00:448,740128,714,00272,544,06302,301,952
15Jul 15, 2022 00:448,741125,825,39072,551,65902,179,072