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 2, 2023 21:31dzaimadzaimaScore: 18,429Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 2, 2023 21:3118,387180,746,783150,601,0002,008,0002,277,376
2Jul 2, 2023 21:3118,392182,913,448151,649,0001,004,0002,527,232
3Jul 2, 2023 21:3118,403180,842,861150,745,0001,996,0002,269,184
4Jul 2, 2023 21:3118,412182,245,154150,820,0001,997,0002,277,376
5Jul 2, 2023 21:3118,414183,412,778150,841,0001,997,0002,269,184
6Jul 2, 2023 21:3118,415175,197,594149,851,0002,997,0002,277,376
7Jul 2, 2023 21:3118,429176,625,324149,958,0002,999,0002,277,376
8Jul 2, 2023 21:3118,429176,655,074150,962,0001,999,0002,277,376
9Jul 2, 2023 21:3118,433180,756,844149,996,0002,999,0002,277,376
10Jul 2, 2023 21:3120,828238,679,143172,874,67702,265,088
11Jul 2, 2023 21:3120,840228,645,176172,973,94102,281,472
12Jul 2, 2023 21:3120,862264,713,941173,157,34102,265,088