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:23Robert BurkeRobert BurkeScore: 8,182Success
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:238,17697,842,04665,868,0001,996,0002,433,024
2Jul 30, 2022 17:238,17890,970,35266,876,000998,0002,277,376
3Jul 30, 2022 17:238,17888,643,90966,882,000998,0002,433,024
4Jul 30, 2022 17:238,18091,606,44165,901,0001,997,0002,277,376
5Jul 30, 2022 17:238,18089,793,25866,895,000998,0002,539,520
6Jul 30, 2022 17:238,18093,629,26366,894,000998,0002,433,024
7Jul 30, 2022 17:238,18293,134,30465,914,0001,997,0002,277,376
8Jul 30, 2022 17:238,18288,672,31766,915,000998,0002,437,120
9Jul 30, 2022 17:238,18388,337,69165,924,0001,997,0002,433,024
10Jul 30, 2022 17:238,18894,959,80766,959,000999,0002,433,024
11Jul 30, 2022 17:238,19090,596,68566,978,000999,0002,433,024
12Jul 30, 2022 17:238,19793,771,92966,035,0002,001,0002,437,120
13Jul 30, 2022 17:238,948127,739,98474,272,32302,179,072
14Jul 30, 2022 17:238,954126,862,93274,319,12102,179,072
15Jul 30, 2022 17:238,959135,800,51074,358,30202,297,856