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 11, 2024 00:25Joad NacerJoad NacerError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2024 00:2400000Error: expected "53687677032684082 ", got "53687687561183482"stderr
2Oct 11, 2024 00:256,17972,189,26549,273,0002,011,0002,510,848
3Oct 11, 2024 00:256,18078,555,35548,276,0003,017,0002,510,848
4Oct 11, 2024 00:256,18376,946,06748,299,0003,018,0002,334,720
5Oct 11, 2024 00:256,18475,161,75048,312,0003,019,0002,510,848
6Oct 11, 2024 00:256,18672,442,02748,324,0003,020,0002,514,944
7Oct 11, 2024 00:256,18774,359,07148,333,0003,020,0002,334,720
8Oct 11, 2024 00:256,19174,338,88048,364,0003,022,0002,334,720
9Oct 11, 2024 00:256,19173,530,72648,360,0003,022,0002,334,720
10Oct 11, 2024 00:256,19586,562,49149,403,0002,016,0002,510,848
11Oct 11, 2024 00:256,31572,101,61851,409,0001,008,0002,342,912
12Oct 11, 2024 00:256,31874,482,56251,431,0001,008,0002,506,752
13Oct 11, 2024 00:256,32578,372,08751,485,0001,009,0002,342,912