mit-indiv09-coaches
While you are solving the problems, the coaches (Aleks and Andy) are playing an interesting game. First they agree on an interval [a, b] (1 <= a <= b <= 1000). Then the computer generates two integers x and y (x <= y) from that interval, and reports the product to Aleks, and the sum to Andy. After that they both try to guess the numbers.
You overheard the conversation of the two coaches:Aleks: I don’t know the numbers
Andy: I don’t know the numbers
Aleks: I don’t know the numbers
Andy: I don’t know the numbers
Aleks: I don’t know the numbers
Andy: I don’t know the numbers
Aleks: ...
Andy: ... (N times)
Aleks: I know the numbers.
For given N you have to find out what the numbers x and y are.
Input:
1 9 1Output:
1 4Submit solution
Coming laterThe grading service will be connected in a later migration step. You can inspect the task and your previous results now.