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 listSep 18, 2022 04:01Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 18, 2022 04:0300000Error: expected "53685301304585642 ", got "53685287625073784 "stderr
2Sep 18, 2022 04:0200000Error: expected "53693160678941751 ", got "53551167330995820 "stderr
3Sep 18, 2022 04:017,24586,976,33857,128,0003,006,0002,420,736
4Sep 18, 2022 04:027,268114,433,01360,324,72102,269,184
5Sep 18, 2022 04:027,320126,717,56960,753,67302,187,264
6Sep 18, 2022 04:017,36284,730,24257,100,0004,007,0002,400,256
7Sep 18, 2022 04:027,380125,827,91361,249,94202,297,856
8Sep 18, 2022 04:017,38684,517,23857,282,0004,019,0002,297,856
9Sep 18, 2022 04:017,397136,492,72361,394,83902,220,032
10Sep 18, 2022 04:017,41291,480,21159,506,0002,017,0002,322,432
11Sep 18, 2022 04:017,44287,330,21456,790,0004,981,0002,486,272
12Sep 18, 2022 04:017,445136,243,44161,792,31502,183,168
13Sep 18, 2022 04:017,48484,742,13059,110,0003,005,0002,293,760
14Sep 18, 2022 04:017,51991,995,08058,379,0004,026,0002,351,104
15Sep 18, 2022 04:017,52688,816,26358,437,0004,030,0002,424,832
16Sep 18, 2022 04:017,53689,409,23558,516,0004,035,0002,342,912
17Sep 18, 2022 04:017,543127,163,98062,607,07402,281,472