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 listDec 6, 2023 02:54Yuriy 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
1Dec 6, 2023 02:5400000Error: expected "53683808644180215 ", got "53683806084180215 "stderr
2Dec 6, 2023 02:5400000Error: expected "53683641467997826 ", got "53683615867997826 "stderr
3Dec 6, 2023 02:546,92082,908,66354,414,0003,023,0002,506,752
4Dec 6, 2023 02:546,96683,118,24052,834,0004,984,0002,269,184
5Dec 6, 2023 02:546,96888,963,84953,846,0003,988,0002,396,160
6Dec 6, 2023 02:546,97880,901,78453,926,0003,994,0002,273,280
7Dec 6, 2023 02:547,00085,807,60555,092,0003,005,0002,510,848
8Dec 6, 2023 02:547,00486,913,17654,125,0004,009,0002,318,336
9Dec 6, 2023 02:547,03281,550,79456,357,0002,012,0002,310,144
10Dec 6, 2023 02:547,04184,626,30956,422,0002,015,0002,469,888
11Dec 6, 2023 02:547,08584,352,16155,813,0002,990,0002,420,736
12Dec 6, 2023 02:547,146123,711,26659,309,32402,224,128
13Dec 6, 2023 02:557,155128,411,41559,386,75302,191,360
14Dec 6, 2023 02:557,190133,631,85459,676,29602,224,128
15Dec 6, 2023 02:547,193129,999,76459,701,42302,273,280
16Dec 6, 2023 02:557,211131,642,98459,848,43802,265,088
17Dec 6, 2023 02:547,246125,380,07960,141,49902,289,664