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 10, 2022 04:55Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 10, 2022 04:5600000Error: expected "53687383207006144 ", got "53687305420585664 "stderr
2Jan 10, 2022 04:5612,488381,241,308102,655,000996,0002,277,376
3Jan 10, 2022 04:5612,489385,643,122101,668,0001,993,0002,281,472
4Jan 10, 2022 04:5612,490374,727,031101,671,0001,993,0002,281,472
5Jan 10, 2022 04:5612,490377,321,967101,673,0001,993,0002,281,472
6Jan 10, 2022 04:5612,492376,163,857102,685,000996,0002,281,472
7Jan 10, 2022 04:5612,495383,480,985101,718,0001,994,0002,281,472
8Jan 10, 2022 04:5612,495376,374,243101,715,0001,994,0002,277,376
9Jan 10, 2022 04:5612,500377,129,164101,753,0001,995,0002,265,088
10Jan 10, 2022 04:5612,514378,329,642101,869,0001,997,0002,281,472
11Jan 10, 2022 04:5512,645377,120,744102,955,0001,999,0002,281,472
12Jan 10, 2022 04:5512,647378,324,282103,970,000999,0002,281,472
13Jan 10, 2022 04:5512,648377,663,306102,982,0001,999,0002,277,376
14Jan 10, 2022 04:5512,653378,395,533103,018,0002,000,0002,281,472
15Jan 10, 2022 04:5512,656380,549,330103,047,0002,000,0002,277,376
16Jan 10, 2022 04:5512,664378,318,201105,109,00002,281,472
17Jan 10, 2022 04:5512,665377,156,234104,120,0001,001,0002,281,472
18Jan 10, 2022 04:5512,669377,740,032103,150,0002,002,0002,281,472
19Jan 10, 2022 04:5512,675377,923,532103,201,0002,003,0002,281,472
20Jan 10, 2022 04:5612,767423,736,899105,970,24802,277,376
21Jan 10, 2022 04:5612,840429,802,069106,576,02502,281,472
22Jan 10, 2022 04:5612,846415,331,741106,624,32902,252,800
23Jan 10, 2022 04:5512,955426,939,621107,525,44402,285,568
24Jan 10, 2022 04:5513,023425,166,795108,091,18002,252,800
25Jan 10, 2022 04:5513,023421,885,769108,092,35902,248,704