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 listMay 27, 2024 17:36Matt StuchlikMatt StuchlikError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 27, 2024 17:4600000Error: expected "53692822109940095 ", got "53692948183515830 "
2May 27, 2024 17:4100000Error: expected "53681793611505093 ", got "53681845862722041 "
3May 27, 2024 17:4000000Error: Exit with code 1: Segmentation fault at address: 1082163328stderr
4May 27, 2024 17:3900000Error: expected "53679723337843762 ", got "53679764408203645 "
5May 27, 2024 17:3700000Error: Exit with code 1: Segmentation fault at address: 1082163328stderr
6May 27, 2024 17:3600000Error: Exit with code 1: Segmentation fault at address: 1208025152stderr
7May 27, 2024 17:4300000Error: expected "53682657396794759 ", got "53682669287089505 "
8May 27, 2024 17:4500000Error: expected "53686248970660596 ", got "53686311517097526 "
9May 27, 2024 17:4700000Error: expected "53690205567442465 ", got "53690219085873552 "
10May 27, 2024 17:4800000Error: expected "53688413320665969 ", got "53688433651062439 "
11May 27, 2024 17:4900000Error: expected "53683795513945830 ", got "53683827962293799 "
12May 27, 2024 17:506,245126,225,28451,830,11502,203,648
13May 27, 2024 17:386,311118,968,26152,383,50002,465,792
14May 27, 2024 17:446,335127,357,68352,576,99902,183,168
15May 27, 2024 17:446,354109,860,87952,738,06102,195,456
16May 27, 2024 17:426,354122,909,54652,738,79602,203,648
17May 27, 2024 17:386,364110,792,56752,825,02102,203,648
18May 27, 2024 17:446,364117,402,25352,822,21302,203,648
19May 27, 2024 17:506,371122,658,83952,882,32502,211,840
20May 27, 2024 17:426,372111,648,31352,886,88402,203,648
21May 27, 2024 17:506,387131,717,86853,013,17702,215,936
22May 27, 2024 17:386,431115,912,51653,380,08102,203,648
23May 27, 2024 17:426,495126,489,92453,912,23002,191,360