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 30, 2022 17:19Robert BurkeRobert BurkeScore: 8,207Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 30, 2022 17:198,15297,492,49667,658,00002,424,832
2Jul 30, 2022 17:198,16798,128,14266,793,000996,0002,277,376
3Jul 30, 2022 17:198,168100,669,68666,798,000996,0002,433,024
4Jul 30, 2022 17:198,19695,213,78067,027,0001,000,0002,428,928
5Jul 30, 2022 17:198,19995,212,88967,050,0001,000,0002,433,024
6Jul 30, 2022 17:198,20690,146,47767,112,0001,001,0002,539,520
7Jul 30, 2022 17:198,20791,203,32166,115,0002,003,0002,433,024
8Jul 30, 2022 17:198,20788,620,53066,112,0002,003,0002,277,376
9Jul 30, 2022 17:198,20991,882,15366,134,0002,004,0002,277,376
10Jul 30, 2022 17:198,20990,457,04466,129,0002,003,0002,539,520
11Jul 30, 2022 17:198,20994,749,51666,134,0002,004,0002,539,520
12Jul 30, 2022 17:198,21791,984,54267,197,0001,002,0002,277,376
13Jul 30, 2022 17:199,615133,946,17479,802,37102,293,760
14Jul 30, 2022 17:199,631132,500,14079,934,77302,179,072
15Jul 30, 2022 17:199,636135,528,10279,980,25602,301,952