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:43sliceteamsliceteamScore: 9,653Success
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:439,034142,890,29474,986,23702,260,992
2Oct 9, 2023 02:439,039147,117,79475,020,15302,273,280
3Oct 9, 2023 02:439,145138,395,93775,904,65302,269,184
4Oct 9, 2023 02:439,641103,586,85278,024,0002,000,0002,260,992
5Oct 9, 2023 02:439,644111,118,92678,046,0002,001,0002,260,992
6Oct 9, 2023 02:439,646104,826,22279,058,0001,000,0002,387,968
7Oct 9, 2023 02:439,648108,628,73979,078,0001,000,0002,260,992
8Oct 9, 2023 02:439,653104,914,53379,121,0001,001,0002,387,968
9Oct 9, 2023 02:439,654107,032,95278,123,0002,003,0002,392,064
10Oct 9, 2023 02:439,662110,351,96179,195,0001,002,0002,396,160
11Oct 9, 2023 02:439,663107,446,73878,202,0002,005,0002,523,136
12Oct 9, 2023 02:439,666110,085,55679,223,0001,002,0002,523,136
13Oct 9, 2023 02:4311,134116,613,85792,410,00002,260,992
14Oct 9, 2023 02:4311,154118,986,12691,570,0001,006,0002,506,752
15Oct 9, 2023 02:4311,180118,306,43391,794,000997,0002,383,872