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 listJan 24, 2023 20:07unsatcoreunsatcoreScore: 12,629Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 24, 2023 20:0711,786148,673,35797,822,49302,281,472
2Jan 24, 2023 20:0611,834163,820,78698,225,74102,273,280
3Jan 24, 2023 20:0711,852165,051,29098,374,38602,269,184
4Jan 24, 2023 20:0611,992170,642,17099,532,70902,273,280
5Jan 24, 2023 20:0611,994162,028,28699,548,68102,281,472
6Jan 24, 2023 20:0712,051156,969,844100,020,91902,277,376
7Jan 24, 2023 20:0612,594133,861,375102,518,0002,010,0002,277,376
8Jan 24, 2023 20:0712,598132,961,405102,556,0002,010,0002,277,376
9Jan 24, 2023 20:0712,620131,332,278102,750,0001,995,0002,281,472
10Jan 24, 2023 20:0612,620130,630,733101,757,0002,992,0002,523,136
11Jan 24, 2023 20:0612,623137,570,786101,778,0002,993,0002,277,376
12Jan 24, 2023 20:0612,629129,151,940102,828,0001,996,0002,277,376
13Jan 24, 2023 20:0712,629136,968,654102,828,0001,996,0002,277,376
14Jan 24, 2023 20:0612,635127,901,608102,870,0001,997,0002,277,376
15Jan 24, 2023 20:0712,645127,690,003102,954,0001,999,0002,277,376
16Jan 24, 2023 20:0612,648128,080,956102,978,0001,999,0002,277,376
17Jan 24, 2023 20:0712,655128,541,427103,037,0002,000,0002,277,376
18Jan 24, 2023 20:0712,660128,092,927104,082,0001,000,0002,519,040
19Jan 24, 2023 20:0712,669130,416,163101,146,0004,005,0002,277,376
20Jan 24, 2023 20:0612,670127,685,151103,160,0002,003,0002,277,376
21Jan 24, 2023 20:0612,684126,447,861103,273,0002,005,0002,277,376
22Jan 24, 2023 20:0712,701131,766,273104,415,0001,003,0002,277,376
23Jan 24, 2023 20:0612,703131,993,309102,425,0003,012,0002,519,040
24Jan 24, 2023 20:0712,876130,704,520103,877,0002,996,0002,514,944