|시간 제한||메모리 제한||제출||정답||맞은 사람||정답 비율|
|1 초||128 MB||4||2||2||50.000%|
During a lesson of algebra Liene has written the following table on the board:
Liene chose integer numbers a un b, 0<|a|<1000, 0<|b|<1000, a ≥ b, wrote these in the first and second column, then calculated the value ab2, wrote it in the third column and, finally, calculated ab2 and wrote it in the fourth column. You can assume that Liene did not make errors in her calculations.
Peter erased some of the numbers in the table and wrote 0 instead:
Your task is to write a program that from this type of a (Peter's modified) table finds and outputs the starting values of a, b, a2b un ab2. If more than one answer is possible, output the one with the smallest value of the leftmost repairable number.
12 0 288 0
12 2 288 48
0 0 0 81
1 -9 -9 81