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 30, 2022 15:11Jack FrigaardJack FrigaardScore: 5,369Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 30, 2022 15:115,29366,833,26841,937,0001,997,0002,281,472
2Dec 30, 2022 15:095,30765,750,29341,041,0003,003,0002,281,472
3Dec 30, 2022 15:095,31172,084,73640,075,0004,007,0002,293,760
4Dec 30, 2022 15:175,31367,257,08141,094,0003,006,0002,281,472
5Dec 30, 2022 15:175,31668,089,35142,117,0002,005,0002,281,472
6Dec 30, 2022 15:115,31871,969,27441,127,0003,009,0002,289,664
7Dec 30, 2022 15:175,31867,526,29041,134,0003,009,0002,281,472
8Dec 30, 2022 15:115,31964,673,73342,138,0002,006,0002,289,664
9Dec 30, 2022 15:115,32270,891,83042,162,0002,007,0002,293,760
10Dec 30, 2022 15:095,32466,731,29240,172,0004,017,0002,277,376
11Dec 30, 2022 15:095,32475,261,68843,186,0001,004,0002,297,856
12Dec 30, 2022 15:175,32676,014,48842,199,0002,009,0002,281,472
13Dec 30, 2022 15:175,32867,054,76540,201,0004,020,0002,289,664
14Dec 30, 2022 15:115,32866,486,78042,211,0002,010,0002,301,952
15Dec 30, 2022 15:095,32968,390,76841,217,0003,015,0002,281,472
16Dec 30, 2022 15:095,33174,561,05742,239,0002,011,0002,281,472
17Dec 30, 2022 15:115,33470,950,46841,254,0003,018,0002,293,760
18Dec 30, 2022 15:095,33672,082,71140,261,0004,026,0002,281,472
19Dec 30, 2022 15:175,33771,416,49941,280,0003,020,0002,289,664
20Dec 30, 2022 15:095,33766,272,78541,275,0003,020,0002,281,472
21Dec 30, 2022 15:115,35077,251,31541,380,0003,027,0002,281,472
22Dec 30, 2022 15:175,35469,245,51741,407,0003,029,0002,281,472
23Dec 30, 2022 15:115,36970,963,16641,523,0003,038,0002,281,472
24Dec 30, 2022 15:115,38569,540,10542,661,0002,031,0002,281,472
25Dec 30, 2022 15:095,38871,114,53643,706,0001,016,0002,281,472
26Dec 30, 2022 15:175,40075,590,46441,834,0002,988,0002,277,376
27Dec 30, 2022 15:175,41470,255,55842,936,0001,997,0002,293,760
28Dec 30, 2022 15:095,441114,329,49645,159,86302,297,856
29Dec 30, 2022 15:095,44369,672,08143,167,0002,007,0002,306,048
30Dec 30, 2022 15:175,44669,732,64742,188,0003,013,0002,281,472
31Dec 30, 2022 15:095,455112,994,68545,274,13102,293,760
32Dec 30, 2022 15:115,46167,156,99543,313,0002,014,0002,408,448
33Dec 30, 2022 15:175,46470,184,25742,326,0003,023,0002,281,472
34Dec 30, 2022 15:175,46970,066,47642,364,0003,026,0002,408,448
35Dec 30, 2022 15:115,472110,361,72945,417,94902,301,952
36Dec 30, 2022 15:095,47275,099,67142,391,0003,027,0002,281,472
37Dec 30, 2022 15:175,478111,384,61645,464,14202,289,664
38Dec 30, 2022 15:175,480101,923,67045,484,98402,289,664
39Dec 30, 2022 15:095,48466,803,28141,474,0004,046,0002,289,664
40Dec 30, 2022 15:095,504113,556,15045,686,17802,297,856
41Dec 30, 2022 15:115,511106,178,87945,741,87002,297,856
42Dec 30, 2022 15:115,52271,754,30843,839,0001,992,0002,281,472
43Dec 30, 2022 15:115,52372,942,98743,849,0001,993,0002,281,472
44Dec 30, 2022 15:115,534117,498,85045,934,63202,301,952
45Dec 30, 2022 15:175,867101,623,64648,692,09902,301,952