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 listNov 24, 2024 02:17MatthiasMatthiasScore: 10,291Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 24, 2024 02:1910,251110,770,00484,081,0001,000,0002,285,568
2Nov 24, 2024 02:1910,251108,881,96883,085,0002,002,0002,519,040
3Nov 24, 2024 02:1910,257106,669,98085,133,00002,269,184
4Nov 24, 2024 02:1710,260108,376,85284,158,0001,001,0002,273,280
5Nov 24, 2024 02:1710,265110,910,39784,201,0001,002,0002,289,664
6Nov 24, 2024 02:1910,266109,264,69483,201,0002,004,0002,289,664
7Nov 24, 2024 02:1710,270116,462,40884,238,0001,002,0002,269,184
8Nov 24, 2024 02:1710,277111,967,02183,295,0002,007,0002,269,184
9Nov 24, 2024 02:1710,283111,388,19383,343,0002,008,0002,273,280
10Nov 24, 2024 02:1910,283114,651,42984,348,0001,004,0002,281,472
11Nov 24, 2024 02:1910,284111,170,29583,353,0002,008,0002,289,664
12Nov 24, 2024 02:1910,284112,721,05283,348,0002,008,0002,265,088
13Nov 24, 2024 02:1710,291110,989,94285,415,00002,277,376
14Nov 24, 2024 02:1910,294112,043,24584,433,0001,005,0002,289,664
15Nov 24, 2024 02:1710,296107,695,92183,448,0002,010,0002,289,664
16Nov 24, 2024 02:1910,298113,472,31284,477,000993,0002,289,664
17Nov 24, 2024 02:1710,298107,718,10084,470,0001,005,0002,371,584
18Nov 24, 2024 02:1710,590111,223,05985,902,0001,997,0002,285,568
19Nov 24, 2024 02:1710,600116,694,42985,982,0001,999,0002,273,280
20Nov 24, 2024 02:1910,609113,491,14886,057,0002,001,0002,289,664
21Nov 24, 2024 02:1910,612111,509,56486,080,0002,001,0002,289,664
22Nov 24, 2024 02:1710,620113,539,39686,145,0002,003,0002,289,664
23Nov 24, 2024 02:1910,626111,219,58787,191,0001,002,0002,289,664
24Nov 24, 2024 02:1710,628116,659,29787,208,0001,002,0002,289,664