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 listOct 9, 2023 02:49sliceteamsliceteamScore: 10,244Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 9, 2023 02:499,441153,143,09178,356,65702,277,376
2Oct 9, 2023 02:499,452146,079,42578,453,00502,273,280
3Oct 9, 2023 02:499,788142,666,55881,243,51002,269,184
4Oct 9, 2023 02:4910,231114,712,01182,920,0001,998,0002,260,992
5Oct 9, 2023 02:4910,237110,810,79483,972,000999,0002,265,088
6Oct 9, 2023 02:4910,241109,800,80083,002,0002,000,0002,383,872
7Oct 9, 2023 02:4910,242110,722,41783,009,0002,000,0002,383,872
8Oct 9, 2023 02:4910,244116,415,60283,025,0002,000,0002,392,064
9Oct 9, 2023 02:4910,249114,573,11484,065,0001,000,0002,387,968
10Oct 9, 2023 02:4910,252111,398,81283,092,0002,002,0002,387,968
11Oct 9, 2023 02:4910,260113,312,34284,158,0001,001,0002,260,992
12Oct 9, 2023 02:4910,377107,421,22685,129,0001,001,0002,396,160
13Oct 9, 2023 02:4911,633122,638,42994,560,0001,990,0002,387,968
14Oct 9, 2023 02:4911,638123,751,98496,593,00002,519,040
15Oct 9, 2023 02:4911,659126,153,20396,768,00002,519,040