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 listJul 25, 2024 21:57UdbhavUdbhavScore: 11,641Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 25, 2024 21:5711,548125,046,87194,850,000998,0002,347,008
2Jul 25, 2024 21:5711,571126,994,20794,041,0002,000,0002,285,568
3Jul 25, 2024 21:5711,588124,923,30794,181,0002,003,0002,285,568
4Jul 25, 2024 21:5711,594120,662,15095,232,0001,002,0002,351,104
5Jul 25, 2024 21:5711,597122,127,45995,255,0001,002,0002,355,200
6Jul 25, 2024 21:5711,604121,656,89494,304,0002,006,0002,285,568
7Jul 25, 2024 21:5711,615116,005,02495,404,0001,004,0002,355,200
8Jul 25, 2024 21:5711,641124,705,79194,605,0002,012,0002,285,568
9Jul 25, 2024 21:5711,643120,462,91295,630,0001,006,0002,285,568
10Jul 25, 2024 21:5711,657123,999,42495,753,000997,0002,355,200
11Jul 25, 2024 21:5711,663121,113,72495,808,000998,0002,285,568
12Jul 25, 2024 21:5711,666121,273,01695,829,000998,0002,359,296
13Jul 25, 2024 21:5711,714162,677,92397,228,18002,215,936
14Jul 25, 2024 21:5711,718174,589,08897,255,35502,211,840
15Jul 25, 2024 21:5711,724166,819,26697,306,08302,211,840