Logo
(追記) (追記ここまで)

34420번 - Quadratic Autopilot 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 2048 MB131312100.000%

문제

Thomas is trying to model airplanes in his 3D modeling program. He has decided to use parabolic curves to model the movement paths of airplanes. To make his curves as accurate as possible, he has asked a few of his pilot friends to give him the elevations of their respective airplanes at three points in time during some of their flights. Using these three points of elevation data from a given flight, help Thomas find the integer constants $a,ドル $b,ドル and $c$ in the equation

\begin{equation*} e(t) = at^2 + bt + c \end{equation*} which gives the elevation of an airplane at time $t$.

입력

The input consists of three lines, each with two integers separated by a single space. The first integer on a line is a time, $t,ドル and the second integer is the elevation at time $t$: $e(t)$. The times will appear in order from smallest to greatest; i.e. $t_1 < t_2 < t_3$.

Input Restrictions

  • 0ドル \leq t,e(t) < \left\lfloor \sqrt{2^{32-1}-1} \right\rfloor$

출력

The output should be a single line with the three integers $a,ドル $b,ドル and $c$ satisfying the above equation, separated by spaces.

제한

예제 입력 1

0 5280
10 12780
25 14655

예제 출력 1

-25 1000 5280

노트

출처

School > CS@Mines > CS@Mines HSPC 2021 J번

  • 문제를 만든 사람: David Florness
(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /