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 15, 2022 00:10Robert BurkeRobert BurkeScore: 8,215Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 15, 2022 00:108,18789,457,88266,951,000999,0002,531,328
2Jul 15, 2022 00:108,19990,070,78767,055,0001,000,0002,424,832
3Jul 15, 2022 00:108,20595,209,50767,101,0001,001,0002,428,928
4Jul 15, 2022 00:108,20891,652,27267,123,0001,001,0002,424,832
5Jul 15, 2022 00:108,20990,708,51167,133,0001,001,0002,428,928
6Jul 15, 2022 00:108,21092,834,91367,143,0001,002,0002,420,736
7Jul 15, 2022 00:108,21491,063,27767,177,0001,002,0002,424,832
8Jul 15, 2022 00:108,21587,890,91067,179,0001,002,0002,527,232
9Jul 15, 2022 00:108,21692,252,39267,188,0001,002,0002,420,736
10Jul 15, 2022 00:108,21991,746,54966,212,0002,006,0002,428,928
11Jul 15, 2022 00:108,23488,357,27568,344,00002,269,184
12Jul 15, 2022 00:108,25794,284,60967,530,0001,007,0002,269,184
13Jul 15, 2022 00:108,805138,620,53773,084,34702,252,800
14Jul 15, 2022 00:108,813128,632,41473,147,28402,297,856
15Jul 15, 2022 00:108,830134,192,91973,287,23102,170,880