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 listJun 4, 2024 15:53GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 4, 2024 15:5300000Error: expected "53685226334694180 ", got "53685355946100751 "
2Jun 4, 2024 15:534,95564,888,05740,124,0001,003,0002,273,280
3Jun 4, 2024 15:534,95664,841,67039,131,0002,006,0002,400,256
4Jun 4, 2024 15:534,96362,336,50039,187,0002,009,0002,400,256
5Jun 4, 2024 15:534,96364,640,51639,185,0002,009,0002,400,256
6Jun 4, 2024 15:534,96464,958,80540,196,0001,004,0002,387,968
7Jun 4, 2024 15:534,96464,309,10140,200,0001,005,0002,400,256
8Jun 4, 2024 15:534,96469,670,17439,194,0002,009,0002,273,280
9Jun 4, 2024 15:534,96664,940,96739,205,0002,010,0002,396,160
10Jun 4, 2024 15:534,96661,852,13840,215,0001,005,0002,400,256
11Jun 4, 2024 15:534,96665,972,61539,209,0002,010,0002,404,352
12Jun 4, 2024 15:534,96964,444,65439,233,0002,011,0002,273,280
13Jun 4, 2024 15:534,97167,403,03039,245,0002,012,0002,273,280
14Jun 4, 2024 15:534,97165,912,28740,252,0001,006,0002,404,352
15Jun 4, 2024 15:534,97262,250,54039,256,0002,013,0002,273,280
16Jun 4, 2024 15:534,97363,217,23640,268,0001,006,0002,273,280
17Jun 4, 2024 15:534,97375,227,87539,262,0002,013,0002,273,280
18Jun 4, 2024 15:534,97366,139,36541,273,00002,396,160
19Jun 4, 2024 15:534,97461,684,31541,283,00002,514,944
20Jun 4, 2024 15:534,97563,570,72240,282,0001,007,0002,392,064
21Jun 4, 2024 15:534,97665,803,89441,299,00002,273,280
22Jun 4, 2024 15:534,97963,983,63640,321,0001,008,0002,273,280
23Jun 4, 2024 15:534,97969,653,17839,309,0002,015,0002,273,280
24Jun 4, 2024 15:534,98162,330,94340,332,0001,008,0002,400,256
25Jun 4, 2024 15:534,98363,322,91340,351,0001,008,0002,510,848
26Jun 4, 2024 15:534,98561,350,75640,366,0001,009,0002,396,160
27Jun 4, 2024 15:534,98568,167,05240,365,0001,009,0002,273,280
28Jun 4, 2024 15:534,98563,213,23440,368,0001,009,0002,510,848
29Jun 4, 2024 15:535,099106,420,44842,323,67402,285,568
30Jun 4, 2024 15:535,099108,620,28542,318,50002,277,376
31Jun 4, 2024 15:535,099116,724,03742,322,00802,281,472
32Jun 4, 2024 15:535,102109,063,91442,348,16902,289,664
33Jun 4, 2024 15:535,102112,237,30342,346,59502,281,472
34Jun 4, 2024 15:535,103108,519,29342,351,26102,293,760
35Jun 4, 2024 15:535,105101,827,41542,374,74502,273,280
36Jun 4, 2024 15:535,133111,388,23942,606,46402,285,568
37Jun 4, 2024 15:535,140127,916,81242,662,94202,281,472
38Jun 4, 2024 15:535,91271,100,89347,064,0002,002,0002,396,160
39Jun 4, 2024 15:535,92372,246,47148,160,0001,003,0002,273,280
40Jun 4, 2024 15:535,92870,366,55947,196,0002,008,0002,273,280
41Jun 4, 2024 15:535,93075,111,27847,208,0002,008,0002,273,280
42Jun 4, 2024 15:535,93373,605,61447,235,0002,010,0002,273,280
43Jun 4, 2024 15:535,94771,768,69949,364,00002,506,752
44Jun 4, 2024 15:535,95174,445,63949,397,00002,273,280
45Jun 4, 2024 15:535,95874,481,69048,439,0001,009,0002,277,376
46Jun 4, 2024 15:535,96772,014,78249,525,00002,273,280