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 listApr 16, 2024 18:23Matt 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
1Apr 16, 2024 18:2200000Error: expected "53690610405249656 ", got "53690607845249656 "
2Apr 16, 2024 18:2211,176177,342,25292,764,05802,265,088
3Apr 16, 2024 18:2311,187146,172,35492,854,91402,277,376
4Apr 16, 2024 18:2311,208158,099,14693,030,09802,269,184
5Apr 16, 2024 18:2311,218150,929,26393,110,59302,256,896
6Apr 16, 2024 18:2211,227160,118,64293,185,18202,273,280
7Apr 16, 2024 18:2311,237153,912,80093,270,06902,265,088
8Apr 16, 2024 18:2311,305160,636,53393,830,87102,273,280
9Apr 16, 2024 18:2211,323148,740,14393,983,47102,273,280
10Apr 16, 2024 18:2311,343161,815,01194,143,63502,273,280
11Apr 16, 2024 18:2311,572123,356,66295,048,0001,000,0002,285,568
12Apr 16, 2024 18:2212,066122,512,32998,147,0002,003,0002,379,776
13Apr 16, 2024 18:2212,077122,879,56099,237,0001,002,0002,285,568
14Apr 16, 2024 18:2212,085123,118,89498,298,0002,006,0002,285,568
15Apr 16, 2024 18:2312,086122,291,66799,309,0001,003,0002,285,568
16Apr 16, 2024 18:2312,087122,402,20898,318,0002,006,0002,285,568
17Apr 16, 2024 18:2212,087123,991,08398,318,0002,006,0002,285,568
18Apr 16, 2024 18:2212,089128,915,36298,332,0002,006,0002,260,992
19Apr 16, 2024 18:2212,099122,510,295100,423,00002,277,376
20Apr 16, 2024 18:2312,118133,474,61199,571,0001,005,0002,285,568
21Apr 16, 2024 18:2312,138123,903,81198,748,0001,994,0002,347,008
22Apr 16, 2024 18:2312,143130,770,19098,792,0001,995,0002,285,568
23Apr 16, 2024 18:2212,239130,698,462101,582,00002,285,568
24Apr 16, 2024 18:2312,246128,226,940101,643,00002,269,184
25Apr 16, 2024 18:2212,263131,318,72199,789,0001,995,0002,285,568
26Apr 16, 2024 18:2312,266124,254,36499,813,0001,996,0002,260,992
27Apr 16, 2024 18:2212,283129,165,58799,954,0001,999,0002,269,184
28Apr 16, 2024 18:2312,309131,576,522100,160,0002,003,0002,285,568