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 listFeb 23, 2024 17:34Matt StuchlikMatt StuchlikScore: 122,111Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 23, 2024 17:44117,1201,039,297,993972,093,28002,293,760
2Feb 23, 2024 17:44117,1961,037,508,050972,723,21502,285,568
3Feb 23, 2024 17:44117,2141,035,770,062972,877,47302,289,664
4Feb 23, 2024 17:39119,8681,072,050,272994,906,38502,236,416
5Feb 23, 2024 17:39119,9611,055,506,067995,677,11502,236,416
6Feb 23, 2024 17:39119,9891,058,601,087995,906,74702,240,512
7Feb 23, 2024 17:45120,3301,072,367,844998,739,83702,252,800
8Feb 23, 2024 17:45120,3701,067,924,246999,074,79202,248,704
9Feb 23, 2024 17:45120,4481,061,055,845999,717,85902,248,704
10Feb 23, 2024 17:38122,1111,073,322,8061,013,524,98802,297,856
11Feb 23, 2024 17:38122,1771,076,521,6651,014,068,16402,285,568
12Feb 23, 2024 17:38122,2201,091,207,7161,014,423,18802,289,664
13Feb 23, 2024 17:37123,4661,090,163,4331,024,770,31402,191,360
14Feb 23, 2024 17:37123,5451,093,498,9661,025,421,33002,187,264
15Feb 23, 2024 17:37123,6311,091,296,7651,026,138,45802,191,360
16Feb 23, 2024 17:34134,1041,177,185,7151,113,060,05902,301,952
17Feb 23, 2024 17:34134,4161,176,254,6781,115,654,30802,183,168
18Feb 23, 2024 17:34134,4211,175,945,4261,115,695,22402,179,072