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 listDec 31, 2022 17:00Jack FrigaardJack FrigaardScore: 5,140Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 31, 2022 17:005,10869,873,59039,367,0003,028,0002,260,992
2Dec 31, 2022 17:005,11663,672,83640,438,0002,021,0002,449,408
3Dec 31, 2022 17:005,11663,944,33741,452,0001,011,0002,260,992
4Dec 31, 2022 17:005,11771,075,81540,446,0002,022,0002,461,696
5Dec 31, 2022 17:005,13168,556,57640,560,0002,028,0002,461,696
6Dec 31, 2022 17:005,13264,872,38442,595,00002,457,600
7Dec 31, 2022 17:005,13271,566,91840,567,0002,028,0002,523,136
8Dec 31, 2022 17:005,14073,115,08740,630,0002,031,0002,260,992
9Dec 31, 2022 17:005,16370,464,80640,815,0002,040,0002,260,992
10Dec 31, 2022 17:005,19873,188,56641,136,0002,006,0002,260,992
11Dec 31, 2022 17:005,20470,799,52841,183,0002,008,0002,449,408
12Dec 31, 2022 17:005,22373,048,67040,323,0003,024,0002,519,040
13Dec 31, 2022 17:005,312102,540,61244,086,92002,195,456
14Dec 31, 2022 17:005,350110,166,18144,402,38802,199,552
15Dec 31, 2022 17:005,350105,354,91744,403,02402,203,648