Sum of seq numbers
There is no involute formulation concerning factitiously activity of SKB Kontur in this problem. Moreover, there is no formulation at all.
InputThere is the only number N, 0 < N ≤ 10^9.
OutputYour program is to output two positive integers A and P separated with a space such that:
1. N = A + (A + 1) + … + (A + P − 1).
2. You are to choose a pair with the maximal possible value of P.
1. N = A + (A + 1) + … + (A + P − 1).
2. You are to choose a pair with the maximal possible value of P.
Input:
Output:
14Output:
2 4Submit solution
Coming laterThe grading service will be connected in a later migration step. You can inspect the task and your previous results now.