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 27, 2024 20:58Joad NacerJoad NacerScore: 11,786Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 27, 2024 20:5810,767110,833,23988,365,0001,004,0002,285,568
2Apr 27, 2024 20:5811,410169,084,95594,700,71102,273,280
3Apr 27, 2024 20:5811,420163,297,44894,785,23702,273,280
4Apr 27, 2024 20:5811,429187,268,97394,863,49502,273,280
5Apr 27, 2024 20:5811,544128,441,57094,816,000998,0002,285,568
6Apr 27, 2024 20:5811,691126,234,96595,034,0002,000,0002,269,184
7Apr 27, 2024 20:5811,749121,905,79796,513,0001,005,0002,285,568
8Apr 27, 2024 20:5811,786130,272,45297,823,00002,363,392
9Apr 27, 2024 20:5811,912123,780,36196,869,0001,997,0002,285,568
10Apr 27, 2024 20:5811,987126,553,11298,491,0001,005,0002,285,568
11Apr 27, 2024 20:5812,012126,131,11497,705,0001,993,0002,285,568
12Apr 27, 2024 20:5812,044125,167,66298,969,000999,0002,285,568
13Apr 27, 2024 20:5812,062122,933,37098,111,0002,002,0002,285,568
14Apr 27, 2024 20:5812,117128,769,46899,570,0001,005,0002,285,568
15Apr 27, 2024 20:5812,123127,169,16599,618,0001,006,0002,265,088