1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
#include <iostream> using namespace std; int main() { double M,Px,Py,Vx,Vy,Fx,Fy,T,x,y; cin >> M; cin >> Px; cin >> Py; cin >> Vx; cin >> Vy; cin >> Fx; cin >> Fy; cin >> T; x = (Fx*T*T/M)/2 + Vx*T + Px; y = (Fy*T*T/M)/2 + Vy*T + Py; cout << fixed; cout.setf(ios::showpoint); cout.precision(3); cout << x << " " << y << endl; return 0; }