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 listApr 11, 2024 09:44Matt StuchlikMatt StuchlikScore: 20,246Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 11, 2024 09:4317,918223,342,439148,718,63302,285,568
2Apr 11, 2024 09:4418,715238,464,694155,332,81002,285,568
3Apr 11, 2024 09:4318,718228,140,153155,357,52502,289,664
4Apr 11, 2024 09:4318,718232,489,603155,360,04002,293,760
5Apr 11, 2024 09:4418,732227,405,455155,472,67802,285,568
6Apr 11, 2024 09:4419,867220,942,962164,892,51102,285,568
7Apr 11, 2024 09:4420,242195,428,457166,008,0002,000,0002,285,568
8Apr 11, 2024 09:4420,246192,696,590166,040,0002,000,0002,285,568
9Apr 11, 2024 09:4420,247194,600,097166,050,0002,000,0002,285,568
10Apr 11, 2024 09:4420,248190,404,637167,057,0001,000,0002,285,568
11Apr 11, 2024 09:4420,252200,751,572166,088,0002,001,0002,285,568
12Apr 11, 2024 09:4420,259192,580,374166,148,0002,001,0002,285,568
13Apr 11, 2024 09:4420,260192,193,870167,160,0001,000,0002,285,568
14Apr 11, 2024 09:4420,268189,656,861166,223,0002,002,0002,531,328
15Apr 11, 2024 09:4420,284197,335,908167,353,0001,002,0002,285,568