In the Olympics, appearances do matter!
The trajectory of a long jumper is given by h (x) = max(0 , p(x)), where p(x) = a(x-h)^2 + k is a quadratic polynomial describing a parabola opening downward whose vertex ( h, k) lies in the upper half-plane. (That is, a < 0 and k > 0.) Due to rigorous training, each jumper always jumps with the same trajectory, and due to corporate sponsorship and branding requirements, no two jumpers have the sam e trajectory.
Adoring fans who wish to preserve the moment occasionally sample their favorite athlete’s coordinates at various times and write them down, such as: (0 , 0) , (1 , 3) , (2 , 4) , (3 , 3) , (4 , 0) , (7 , 0). Given two sample sets, your job is to determine whether they were taken from the same athlete or not, assuming there is enough information to do so.
입력 6 4 0 0 1 3 2 4 3 3 4 0 7 0 1 3 2 4 3 3 4 0 출력 same 입력 6 1 0 0 1 3 2 4 3 3 4 0 7 0 0 0 출력 unsure 입력 6 2 0 0 1 3 2 4 3 3 4 0 7 0 1 3 2 5 출력 different
출처:standford/2008/