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 listSep 16, 2024 15:56mberman12mberman12Score: 1,827,655Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 16, 2024 15:571,822,99615,164,970,77315,055,894,00074,969,0002,281,472
2Sep 16, 2024 15:561,825,42315,187,178,95715,091,035,00059,976,0002,289,664
3Sep 16, 2024 15:571,825,73715,184,330,98815,078,644,00074,973,0002,269,184
4Sep 16, 2024 15:571,825,93415,188,222,88015,101,282,00053,972,0002,293,760
5Sep 16, 2024 15:561,825,99615,185,215,82115,075,803,00079,967,0002,289,664
6Sep 16, 2024 15:561,826,11115,194,277,03815,083,753,00072,969,0002,281,472
7Sep 16, 2024 15:561,826,21915,193,210,15815,087,655,00069,965,0002,289,664
8Sep 16, 2024 15:571,826,23515,190,938,30115,087,781,00069,971,0002,281,472
9Sep 16, 2024 15:571,826,24915,190,911,29515,091,901,00065,968,0002,289,664
10Sep 16, 2024 15:571,827,65515,197,692,01515,096,572,00072,968,0002,281,472
11Sep 16, 2024 15:561,827,72615,202,274,65815,089,159,00080,963,0002,289,664
12Sep 16, 2024 15:571,828,67915,206,869,64615,112,061,00065,974,0002,281,472
13Sep 16, 2024 15:561,829,21415,214,891,70615,108,503,00073,973,0002,281,472
14Sep 16, 2024 15:571,830,47015,225,718,48315,131,929,00060,975,0002,281,472
15Sep 16, 2024 15:561,830,83315,231,969,22515,130,940,00064,973,0002,281,472
16Sep 16, 2024 15:571,866,09315,524,759,55215,415,600,00072,969,0002,281,472
17Sep 16, 2024 15:561,911,76815,902,190,47015,801,703,00065,973,0002,289,664
18Sep 16, 2024 15:561,952,65716,237,171,56716,143,088,00063,968,0002,281,472