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 18:16Jack FrigaardJack FrigaardScore: 4,869Success
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 18:164,76973,573,46737,552,0002,029,0002,519,040
2Jan 1, 2023 18:164,76964,273,95638,570,0001,015,0002,519,040
3Jan 1, 2023 18:164,78065,385,62938,659,0001,017,0002,514,944
4Jan 1, 2023 18:164,78370,704,88237,661,0002,035,0002,514,944
5Jan 1, 2023 18:164,79966,641,13739,831,00002,514,944
6Jan 1, 2023 18:164,81169,051,95136,937,0002,994,0002,514,944
7Jan 1, 2023 18:164,82365,391,31837,025,0003,002,0002,514,944
8Jan 1, 2023 18:164,86971,597,58437,381,0003,030,0002,453,504
9Jan 1, 2023 18:164,89267,256,71039,589,0001,015,0002,519,040
10Jan 1, 2023 18:164,91862,235,02938,829,0001,991,0002,441,216
11Jan 1, 2023 18:164,939108,484,94240,994,05102,203,648
12Jan 1, 2023 18:164,94562,499,28438,042,0003,003,0002,519,040
13Jan 1, 2023 18:164,95363,850,63539,102,0002,005,0002,519,040
14Jan 1, 2023 18:164,956108,194,56041,134,21902,199,552
15Jan 1, 2023 18:165,025103,704,67041,707,10002,187,264