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 29, 2024 18:00Joad NacerJoad NacerScore: 7,933Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2024 18:007,843127,306,77565,092,97202,269,184
2Apr 29, 2024 18:007,871129,508,38765,327,35302,265,088
3Apr 29, 2024 18:007,89684,550,82365,535,00002,285,568
4Apr 29, 2024 18:007,91197,232,38164,654,0001,010,0002,269,184
5Apr 29, 2024 18:007,91495,377,17765,690,00002,285,568
6Apr 29, 2024 18:007,91890,793,64664,710,0001,011,0002,285,568
7Apr 29, 2024 18:007,92693,495,73563,794,0001,993,0002,269,184
8Apr 29, 2024 18:007,93395,524,09663,852,0001,995,0002,265,088
9Apr 29, 2024 18:007,97591,456,34964,185,0002,005,0002,285,568
10Apr 29, 2024 18:008,02396,153,00765,583,0001,008,0002,285,568
11Apr 29, 2024 18:008,111138,736,64367,324,31202,252,800
12Apr 29, 2024 18:008,35894,165,09867,365,0002,010,0002,285,568
13Apr 29, 2024 18:008,89098,638,88672,793,000997,0002,285,568
14Apr 29, 2024 18:008,90797,895,75472,931,000999,0002,371,584
15Apr 29, 2024 18:008,92897,778,05472,099,0002,002,0002,285,568