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:54Jack FrigaardJack FrigaardScore: 4,994Success
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:544,848104,591,39240,237,99402,207,744
2Jan 1, 2023 15:544,851109,135,08240,263,90302,211,840
3Jan 1, 2023 15:544,887102,063,44840,562,20402,207,744
4Jan 1, 2023 15:544,98363,688,25739,341,0002,017,0002,453,504
5Jan 1, 2023 15:544,99066,309,57238,384,0003,030,0002,457,600
6Jan 1, 2023 15:544,99367,283,86538,414,0003,032,0002,523,136
7Jan 1, 2023 15:544,99467,149,39538,415,0003,032,0002,523,136
8Jan 1, 2023 15:544,99465,197,60138,419,0003,033,0002,523,136
9Jan 1, 2023 15:545,00666,666,46039,522,0002,026,0002,453,504
10Jan 1, 2023 15:545,03567,587,57639,804,0001,990,0002,523,136
11Jan 1, 2023 15:545,03867,499,52238,829,0002,986,0002,289,664
12Jan 1, 2023 15:545,04073,623,74238,841,0002,987,0002,523,136
13Jan 1, 2023 15:545,04073,467,68540,835,000995,0002,441,216
14Jan 1, 2023 15:545,04475,368,62438,876,0002,990,0002,523,136
15Jan 1, 2023 15:545,05970,381,54138,993,0002,999,0002,523,136