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 24, 2023 00:56sliceteamsliceteamScore: 8,935Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 24, 2023 00:568,707136,089,41672,268,73702,265,088
2Jul 24, 2023 00:568,711148,901,09772,297,65902,265,088
3Jul 24, 2023 00:568,726134,727,86572,423,78702,265,088
4Jul 24, 2023 00:568,914101,168,18671,984,0001,999,0002,396,160
5Jul 24, 2023 00:568,92196,712,81272,041,0002,001,0002,379,776
6Jul 24, 2023 00:568,930104,041,94972,114,0002,003,0002,260,992
7Jul 24, 2023 00:568,934101,985,79972,149,0002,004,0002,260,992
8Jul 24, 2023 00:568,935102,052,02572,154,0002,004,0002,523,136
9Jul 24, 2023 00:568,949100,338,65473,271,0001,003,0002,260,992
10Jul 24, 2023 00:568,949101,708,93872,267,0002,007,0002,260,992
11Jul 24, 2023 00:568,95494,187,34073,317,0001,004,0002,383,872
12Jul 24, 2023 00:569,00599,120,98272,748,0001,993,0002,375,680
13Jul 24, 2023 00:569,092102,982,31375,462,00002,375,680
14Jul 24, 2023 00:569,115102,950,14074,646,0001,008,0002,375,680
15Jul 24, 2023 00:569,133104,074,34373,813,0001,994,0002,252,800