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 listMay 13, 2024 00:12sliceteamsliceteamScore: 8,971Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 13, 2024 00:128,41590,123,71968,848,000997,0002,428,928
2May 13, 2024 00:128,45992,445,36466,200,0004,012,0002,465,792
3May 13, 2024 00:128,52696,676,82468,769,0001,993,0002,400,256
4May 13, 2024 00:128,867100,171,03773,597,00002,375,680
5May 13, 2024 00:128,896101,250,03071,845,0001,995,0002,453,504
6May 13, 2024 00:128,902102,499,27571,889,0001,996,0002,396,160
7May 13, 2024 00:128,94696,174,49472,244,0002,006,0002,478,080
8May 13, 2024 00:128,97196,926,72973,456,0001,006,0002,404,352
9May 13, 2024 00:129,060100,680,53173,195,0002,005,0002,404,352
10May 13, 2024 00:129,08099,842,81773,351,0002,009,0002,359,296
11May 13, 2024 00:129,316103,955,08375,312,0002,008,0002,392,064
12May 13, 2024 00:129,369103,327,70774,770,0002,990,0002,371,584
13May 13, 2024 00:129,690138,772,83080,428,53102,273,280
14May 13, 2024 00:129,727140,273,17280,733,42802,236,416
15May 13, 2024 00:129,795141,145,69881,294,39402,236,416