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:53Jack FrigaardJack FrigaardScore: 5,048Success
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:535,01099,271,25441,584,55602,199,552
2Jan 1, 2023 15:535,012103,439,51041,599,94902,207,744
3Jan 1, 2023 15:535,01697,683,21341,636,67502,195,456
4Jan 1, 2023 15:535,04566,483,15439,881,0001,994,0002,514,944
5Jan 1, 2023 15:535,04571,345,35938,881,0002,990,0002,453,504
6Jan 1, 2023 15:535,04773,071,93240,896,000997,0002,523,136
7Jan 1, 2023 15:535,04764,405,80738,901,0002,992,0002,514,944
8Jan 1, 2023 15:535,04865,867,49039,904,0001,995,0002,523,136
9Jan 1, 2023 15:535,05067,225,59339,916,0001,995,0002,523,136
10Jan 1, 2023 15:535,05162,736,08639,929,0001,996,0002,523,136
11Jan 1, 2023 15:535,05367,759,25738,943,0002,995,0002,449,408
12Jan 1, 2023 15:535,06074,516,80338,996,0002,999,0002,453,504
13Jan 1, 2023 15:535,07770,116,98339,126,0003,009,0002,281,472
14Jan 1, 2023 15:535,10470,079,13139,335,0003,025,0002,523,136
15Jan 1, 2023 15:535,16267,581,59639,853,0002,988,0002,523,136