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 30, 2022 17:29Jack FrigaardJack FrigaardScore: 5,244Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 30, 2022 17:295,16566,309,95340,873,0001,993,0002,400,256
2Dec 30, 2022 17:295,17069,343,41739,919,0002,993,0002,387,968
3Dec 30, 2022 17:295,17169,446,25739,924,0002,994,0002,400,256
4Dec 30, 2022 17:295,17266,293,78739,935,0002,995,0002,404,352
5Dec 30, 2022 17:295,18465,941,56741,028,0002,001,0002,502,656
6Dec 30, 2022 17:295,18871,180,79540,056,0003,004,0002,260,992
7Dec 30, 2022 17:295,19465,780,27140,102,0003,007,0002,260,992
8Dec 30, 2022 17:295,24471,314,18441,499,0002,024,0002,396,160
9Dec 30, 2022 17:295,24666,443,76840,501,0003,037,0002,408,448
10Dec 30, 2022 17:295,25272,040,70041,561,0002,027,0002,387,968
11Dec 30, 2022 17:295,25874,357,43542,625,0001,014,0002,260,992
12Dec 30, 2022 17:295,327107,780,71144,212,97302,269,184
13Dec 30, 2022 17:295,33167,743,13141,230,0003,016,0002,404,352
14Dec 30, 2022 17:295,358105,493,67544,475,53002,265,088
15Dec 30, 2022 17:295,390105,450,90144,737,05102,289,664