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 16, 2022 13:12Robert BurkeRobert BurkeScore: 8,298Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 16, 2022 13:128,25993,467,80268,549,00002,277,376
2Jul 16, 2022 13:128,28799,457,59767,782,000996,0002,277,376
3Jul 16, 2022 13:128,28890,724,55067,797,000997,0002,273,280
4Jul 16, 2022 13:128,295101,244,28567,854,000997,0002,277,376
5Jul 16, 2022 13:128,29693,545,25667,861,000997,0002,277,376
6Jul 16, 2022 13:128,29693,210,86767,863,000997,0002,277,376
7Jul 16, 2022 13:128,29795,267,07466,870,0001,996,0002,428,928
8Jul 16, 2022 13:128,29895,865,89567,873,000998,0002,428,928
9Jul 16, 2022 13:128,30489,348,10567,927,000998,0002,539,520
10Jul 16, 2022 13:128,30790,904,33866,954,0001,998,0002,424,832
11Jul 16, 2022 13:128,31692,887,43368,025,0001,000,0002,277,376
12Jul 16, 2022 13:128,32394,700,81668,079,0001,001,0002,277,376
13Jul 16, 2022 13:128,712142,162,19772,313,39502,179,072
14Jul 16, 2022 13:128,716124,392,81972,341,72202,174,976
15Jul 16, 2022 13:128,722125,205,62372,395,27502,170,880