func_code_string: #include <bits/stdc++.h>   using namespace std;   const double eps = 1E-9;   int cnt;   double a, b, m, vx, vy, vz, t, f;   double ansx, ansz;   int main() {     scanf( %lf%lf%lf , &a, &b, &m);     scanf( %lf%lf%lf , &vx, &vy, &vz);     t = -m / vy;     ansx = a / 2 + t * vx;     ansz = t * vz;     while (ansx < 0) ansx += a;     while (ansz < 0) ansz += b;     while (ansx + eps > a) ansx -= a;     while (ansz + eps > b) ansz -= b;     cnt = (int)(fabs(t / (b / vz)) + eps);     if (cnt % 2) ansz = b - ansz;     cnt = 0;     if (t + eps > fabs((a / 2) / vx)) {       cnt = 1;       t -= fabs(a / 2 / vx);     }     cnt += (int)(fabs(t / (a / vx)) + eps);     if (cnt % 2) ansx = a - ansx;     printf( %.10lf %.10lf n , ansx, ansz);     return 0;   }   