S003-AC.cc
360 Bytes
#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;
}