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 listMay 29, 2024 17:55GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 29, 2024 17:5600000Error: expected "53685042934536602 ", got "53685042934471066 "
2May 29, 2024 17:5500000Error: expected "53689958863608914 ", got "53689958863543378 "
3May 29, 2024 17:5500000Error: expected "53680431657209909 ", got "53680431657144373 "
4May 29, 2024 17:5500000Error: expected "53682731719290254 ", got "53682666176736654 "
5May 29, 2024 17:555,93976,837,01248,291,0001,006,0002,273,280
6May 29, 2024 17:565,94271,808,79949,319,00002,400,256
7May 29, 2024 17:555,94972,279,49548,369,0001,007,0002,273,280
8May 29, 2024 17:555,95070,751,20648,382,0001,007,0002,404,352
9May 29, 2024 17:555,95575,635,26949,425,00002,273,280
10May 29, 2024 17:555,96274,526,82148,475,0001,009,0002,273,280
11May 29, 2024 17:565,96471,799,31748,491,0001,010,0002,273,280
12May 29, 2024 17:565,96776,330,18248,520,0001,010,0002,404,352
13May 29, 2024 17:555,97582,282,81848,582,0001,012,0002,273,280
14May 29, 2024 17:565,98380,258,91849,657,00002,273,280
15May 29, 2024 17:555,99071,176,39449,716,00002,273,280
16May 29, 2024 17:565,99174,391,55348,728,000994,0002,400,256
17May 29, 2024 17:555,99875,941,52447,793,0001,991,0002,273,280
18May 29, 2024 17:556,02074,952,27748,969,000999,0002,273,280
19May 29, 2024 17:566,06075,480,34749,292,0001,005,0002,396,160
20May 29, 2024 17:566,07275,142,03850,400,00002,273,280
21May 29, 2024 17:566,11470,286,61149,749,000994,0002,510,848
22May 29, 2024 17:566,145121,657,33051,005,80502,281,472
23May 29, 2024 17:566,148118,216,17351,025,73702,285,568
24May 29, 2024 17:556,148123,443,26551,028,54902,285,568
25May 29, 2024 17:556,150115,218,84451,048,34002,285,568
26May 29, 2024 18:116,150117,588,70351,045,07102,285,568
27May 29, 2024 17:556,150125,127,93551,046,32702,293,760
28May 29, 2024 17:556,152119,669,26851,059,55302,289,664
29May 29, 2024 18:116,154119,611,79251,078,20602,289,664
30May 29, 2024 17:556,157124,109,54251,103,68802,285,568
31May 29, 2024 18:116,159119,071,17451,122,01202,293,760
32May 29, 2024 17:556,160117,610,54951,126,24602,289,664
33May 29, 2024 17:566,165120,297,77151,167,82002,289,664
34May 29, 2024 17:566,17174,058,09650,217,0001,004,0002,404,352
35May 29, 2024 18:116,173117,322,81951,239,01802,285,568
36May 29, 2024 18:116,177118,581,73751,270,10602,285,568
37May 29, 2024 17:556,185123,768,91751,333,96202,293,760
38May 29, 2024 17:556,196121,624,18751,430,15402,285,568
39May 29, 2024 18:116,199119,613,14551,452,22302,289,664
40May 29, 2024 17:556,200122,379,72551,459,40602,281,472
41May 29, 2024 17:556,264117,503,82851,991,63002,285,568
42May 29, 2024 17:556,323110,337,21752,481,63502,281,472
43May 29, 2024 17:556,337114,215,37752,599,19002,285,568