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 listJul 21, 2022 08:04Robert BurkeRobert BurkeScore: 8,903Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 21, 2022 08:048,812126,968,80673,141,58302,174,976
2Jul 21, 2022 08:048,817133,706,23873,179,92502,293,760
3Jul 21, 2022 08:048,86799,046,11273,593,00002,428,928
4Jul 21, 2022 08:048,870101,169,77773,617,00002,277,376
5Jul 21, 2022 08:048,898100,540,02071,860,0001,996,0002,539,520
6Jul 21, 2022 08:048,898103,394,13471,855,0001,995,0002,277,376
7Jul 21, 2022 08:048,899105,608,40573,863,00002,437,120
8Jul 21, 2022 08:048,90397,124,98372,899,000998,0002,433,024
9Jul 21, 2022 08:048,90497,669,19171,908,0001,997,0002,277,376
10Jul 21, 2022 08:048,913100,904,26072,980,000999,0002,428,928
11Jul 21, 2022 08:048,91493,849,67072,985,000999,0002,539,520
12Jul 21, 2022 08:048,91797,967,51372,011,0002,000,0002,277,376
13Jul 21, 2022 08:048,930124,516,97974,120,08102,174,976
14Jul 21, 2022 08:049,014103,717,09674,817,00002,433,024
15Jul 21, 2022 08:049,01793,660,03074,837,00002,535,424