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,998Success
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,851103,009,97140,265,80102,199,552
2Jan 1, 2023 15:544,861107,628,73940,346,01702,207,744
3Jan 1, 2023 15:544,862115,060,63240,356,98902,199,552
4Jan 1, 2023 15:544,99364,688,26738,410,0003,032,0002,523,136
5Jan 1, 2023 15:544,99367,034,84139,425,0002,021,0002,457,600
6Jan 1, 2023 15:544,99663,970,80039,443,0002,022,0002,523,136
7Jan 1, 2023 15:544,99765,141,58140,464,0001,011,0002,461,696
8Jan 1, 2023 15:544,99868,381,83639,460,0002,023,0002,523,136
9Jan 1, 2023 15:544,99964,603,93939,465,0002,023,0002,457,600
10Jan 1, 2023 15:544,99970,321,85639,471,0002,024,0002,523,136
11Jan 1, 2023 15:545,00266,735,60639,491,0002,025,0002,523,136
12Jan 1, 2023 15:545,04166,450,91738,852,0002,988,0002,453,504
13Jan 1, 2023 15:545,04565,518,81138,880,0002,990,0002,523,136
14Jan 1, 2023 15:545,05063,718,18838,918,0002,993,0002,449,408
15Jan 1, 2023 15:545,05764,973,64838,976,0002,998,0002,457,600