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 02:16Joad 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 02:3100000Error: expected "53689855332723958 ", got "53689869216598238 "stderr
2Oct 11, 2024 02:1600000Error: expected "53693247075635943 ", got "53693257353119066 "stderr
3Oct 11, 2024 02:1600000Error: expected "53686148481407019 ", got "53686147287918294 "stderr
4Oct 11, 2024 02:1600000Error: expected "53681309573239492 ", got "53681323657432142 "stderr
5Oct 11, 2024 02:164,47460,445,99735,129,0002,007,0002,510,848
6Oct 11, 2024 02:164,47656,728,14434,136,0003,012,0002,342,912
7Oct 11, 2024 02:164,47761,844,56735,155,0002,008,0002,334,720
8Oct 11, 2024 02:164,48263,526,47234,183,0003,016,0002,334,720
9Oct 11, 2024 02:164,48355,580,75035,200,0002,011,0002,334,720
10Oct 11, 2024 02:164,48560,087,08034,209,0003,018,0002,334,720
11Oct 11, 2024 02:164,48863,094,65734,233,0003,020,0002,510,848
12Oct 11, 2024 02:164,48960,409,98835,243,0002,013,0002,334,720
13Oct 11, 2024 02:164,48957,911,06934,235,0003,020,0002,506,752
14Oct 11, 2024 02:164,49264,858,79834,263,0003,023,0002,506,752
15Oct 11, 2024 02:164,49358,965,20535,280,0002,016,0002,506,752
16Oct 11, 2024 02:164,50158,931,98235,339,0002,019,0002,334,720
17Oct 11, 2024 02:164,56060,975,82934,864,0002,988,0002,506,752
18Oct 11, 2024 02:164,56962,161,94035,928,0001,996,0002,506,752
19Oct 11, 2024 02:164,57257,061,13534,950,0002,995,0002,510,848
20Oct 11, 2024 02:164,57362,058,47035,955,0001,997,0002,494,464
21Oct 11, 2024 02:164,57756,822,48234,992,0002,999,0002,506,752
22Oct 11, 2024 02:164,59157,171,99336,101,0002,005,0002,498,560