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 20, 2022 16:29Robert BurkeRobert BurkeScore: 8,561Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 20, 2022 16:298,51294,570,03870,653,00002,424,832
2Jul 20, 2022 16:298,52993,130,77070,794,00002,277,376
3Jul 20, 2022 16:298,54395,775,77069,910,000998,0002,428,928
4Jul 20, 2022 16:298,54795,643,28669,944,000999,0002,277,376
5Jul 20, 2022 16:298,55995,093,22470,041,0001,000,0002,277,376
6Jul 20, 2022 16:298,56094,238,36369,043,0002,001,0002,539,520
7Jul 20, 2022 16:298,56091,950,48769,047,0002,001,0002,514,944
8Jul 20, 2022 16:298,56195,309,88570,059,0001,000,0002,277,376
9Jul 20, 2022 16:298,56492,755,97470,083,0001,001,0002,428,928
10Jul 20, 2022 16:298,56788,466,79370,101,0001,001,0002,539,520
11Jul 20, 2022 16:298,56790,300,10169,100,0002,002,0002,535,424
12Jul 20, 2022 16:298,654106,946,25569,831,0001,995,0002,277,376
13Jul 20, 2022 16:298,807127,847,89873,096,63102,170,880
14Jul 20, 2022 16:298,813128,257,47073,147,35902,179,072
15Jul 20, 2022 16:298,826124,345,62473,255,83802,301,952