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 13, 2024 06:47Matt 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 13, 2024 08:3700000Error: expected "53688275959773649 ", got "53688275934173649 "
2Apr 13, 2024 08:1800000Error: expected "53691187021356923 ", got "53691187021356667 "
3Apr 13, 2024 06:4700000Error: expected "53679530850142059 ", got "53679530824542059 "
4Apr 13, 2024 06:4715,745196,158,670130,686,95302,277,376
5Apr 13, 2024 06:4715,748203,643,933130,710,30102,281,472
6Apr 13, 2024 06:4715,749197,763,188130,718,38802,293,760
7Apr 13, 2024 07:2415,757200,335,445130,784,27902,285,568
8Apr 13, 2024 06:4715,760193,404,809130,809,08902,289,664
9Apr 13, 2024 06:4715,761199,702,731130,812,25902,293,760
10Apr 13, 2024 07:5015,764188,662,566130,837,93902,293,760
11Apr 13, 2024 07:2415,765201,153,350130,851,03202,281,472
12Apr 13, 2024 06:4715,768193,277,083130,876,59002,289,664
13Apr 13, 2024 07:2415,879197,323,062131,792,15002,293,760
14Apr 13, 2024 07:5015,895199,614,716131,926,09002,285,568
15Apr 13, 2024 07:5015,895186,522,793131,926,98502,256,896
16Apr 13, 2024 06:4716,612166,133,774136,884,000999,0002,285,568
17Apr 13, 2024 06:4716,900162,926,599138,269,0002,003,0002,285,568
18Apr 13, 2024 06:4716,904163,274,746139,303,0001,002,0002,285,568
19Apr 13, 2024 06:4716,934171,195,964139,552,0001,003,0002,273,280
20Apr 13, 2024 06:4716,935174,094,891138,569,0001,993,0002,285,568
21Apr 13, 2024 06:4716,935170,469,206139,559,0001,004,0002,273,280
22Apr 13, 2024 06:4717,299170,542,708142,574,0001,004,0002,277,376
23Apr 13, 2024 06:4717,327172,589,543141,818,0001,997,0002,269,184
24Apr 13, 2024 06:4717,572169,198,332143,854,0001,997,0002,392,064