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 8, 2023 10:39matsuoka-601matsuoka-601Score: 7,604Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 8, 2023 10:397,353121,057,80061,033,52902,240,512
2Dec 8, 2023 10:397,368125,711,13961,153,75802,248,704
3Dec 8, 2023 10:397,44687,605,56259,806,0001,993,0002,523,136
4Dec 8, 2023 10:397,46985,069,48959,994,0001,999,0002,486,272
5Dec 8, 2023 10:397,57586,207,80860,880,0001,996,0002,523,136
6Dec 8, 2023 10:397,577126,130,30662,886,95402,244,608
7Dec 8, 2023 10:397,60288,401,78962,092,0001,001,0002,523,136
8Dec 8, 2023 10:397,60485,411,72663,110,00002,494,464
9Dec 8, 2023 10:397,66395,478,10861,583,0002,019,0002,519,040
10Dec 8, 2023 10:397,69386,008,89861,856,0001,995,0002,523,136
11Dec 8, 2023 10:397,70589,010,87561,951,0001,998,0002,523,136
12Dec 8, 2023 10:397,72291,430,50263,092,0001,001,0002,523,136
13Dec 8, 2023 10:397,72495,427,05462,103,0002,003,0002,490,368
14Dec 8, 2023 10:397,77295,163,72963,499,0001,007,0002,494,464
15Dec 8, 2023 10:398,21089,230,59067,141,0001,002,0002,478,080