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 10, 2023 03:33sliceteamsliceteamScore: 8,771Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 10, 2023 03:338,628131,128,26471,615,97802,273,280
2Jul 10, 2023 03:338,630128,557,65871,628,09002,265,088
3Jul 10, 2023 03:338,659176,446,10571,868,74702,260,992
4Jul 10, 2023 03:338,746104,402,43772,590,00002,260,992
5Jul 10, 2023 03:338,760100,948,20172,708,00002,260,992
6Jul 10, 2023 03:338,77098,140,90970,796,0001,994,0002,260,992
7Jul 10, 2023 03:338,77098,974,09071,795,000997,0002,379,776
8Jul 10, 2023 03:338,77199,569,59571,803,000997,0002,383,872
9Jul 10, 2023 03:338,777100,731,17771,852,000997,0002,379,776
10Jul 10, 2023 03:338,77798,541,54770,854,0001,995,0002,383,872
11Jul 10, 2023 03:338,796102,606,31871,010,0002,000,0002,260,992
12Jul 10, 2023 03:338,797102,300,67072,012,0001,000,0002,260,992
13Jul 10, 2023 03:338,810101,710,20071,146,0001,976,0002,519,040
14Jul 10, 2023 03:338,972100,730,90473,461,0001,006,0002,379,776
15Jul 10, 2023 03:339,067101,013,81874,250,0001,003,0002,260,992