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 listFeb 20, 2024 14:56Huy Duc LeHuy Duc LeScore: 12,686Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 20, 2024 14:5612,629134,169,37899,830,0004,991,0002,273,280
2Feb 17, 2024 01:1112,636137,288,242101,886,0002,996,0002,510,848
3Feb 17, 2024 01:1112,638135,058,165103,898,000999,0002,277,376
4Feb 17, 2024 01:1112,642134,245,907100,930,0003,997,0002,273,280
5Feb 17, 2024 01:1112,642128,399,439102,932,0001,998,0002,514,944
6Feb 17, 2024 01:1112,643130,765,619101,937,0002,998,0002,273,280
7Feb 17, 2024 01:1112,643130,496,581101,937,0002,998,0002,347,008
8Feb 20, 2024 14:5612,643132,804,780102,942,0001,998,0002,273,280
9Feb 17, 2024 01:1112,652133,193,644103,015,0002,000,0002,506,752
10Feb 20, 2024 14:5612,652132,909,848103,013,0002,000,0002,273,280
11Feb 20, 2024 14:5612,653134,702,424102,020,0003,000,0002,277,376
12Feb 20, 2024 14:5612,658128,253,371103,063,0002,001,0002,506,752
13Feb 20, 2024 14:5612,686174,923,596105,295,72502,285,568
14Feb 20, 2024 14:5612,784136,935,473104,109,0002,002,0002,273,280
15Feb 17, 2024 01:1112,788135,520,608103,135,0003,003,0002,273,280
16Feb 20, 2024 14:5612,789134,158,448103,146,0003,004,0002,273,280
17Feb 20, 2024 14:5612,790136,194,958105,157,0001,001,0002,273,280
18Feb 17, 2024 01:1112,890163,968,111106,987,04802,289,664
19Feb 20, 2024 14:5612,916133,237,022104,199,0003,005,0002,273,280
20Feb 17, 2024 01:1112,919138,765,816105,220,0002,004,0002,273,280
21Feb 17, 2024 01:1112,982170,718,004107,752,82702,289,664
22Feb 20, 2024 14:5612,991165,421,991107,823,87702,289,664
23Feb 20, 2024 14:5613,038179,313,630108,217,21502,293,760
24Feb 17, 2024 01:1113,047178,237,060108,287,88402,289,664