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, 2023 20:32gchebanovgchebanovScore: 8,434Success
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, 2023 20:327,81591,874,17162,870,0001,995,0002,437,120
2Jul 20, 2023 20:327,87085,374,12564,315,0001,004,0002,490,368
3Jul 20, 2023 20:327,96390,610,21865,089,0001,001,0002,461,696
4Jul 20, 2023 20:328,32597,113,76667,094,0002,002,0002,379,776
5Jul 20, 2023 20:328,37594,188,40469,510,00002,465,792
6Jul 20, 2023 20:328,38299,157,26168,566,0001,008,0002,375,680
7Jul 20, 2023 20:328,42796,677,98068,944,000999,0002,379,776
8Jul 20, 2023 20:328,43494,610,13568,005,0002,000,0002,371,584
9Jul 20, 2023 20:328,44798,957,37669,113,0001,001,0002,473,984
10Jul 20, 2023 20:328,48787,282,84869,432,0001,006,0002,371,584
11Jul 20, 2023 20:328,48892,893,43668,437,0002,012,0002,461,696
12Jul 20, 2023 20:328,509104,756,60270,627,00002,478,080
13Jul 20, 2023 20:328,699131,108,03472,205,60502,269,184
14Jul 20, 2023 20:328,720128,987,77872,377,53702,260,992
15Jul 20, 2023 20:328,755134,811,25272,667,83202,256,896