func_code_string: #include <bits/stdc++.h>   using namespace std;   #pragma comment(linker,  /STACK:256000000 )   template <class T>   T sqr(T a) {     return a * a;   }   double a, d, s;   int n;   void init() { cin >> a >> d >> n; }   void solve() {     double x = 0, y = 0;     int dx[4] = {1, 0, -1, 0};     int dy[4] = {0, 1, 0, -1};     int t = d / (4 * a);     d = d - t * (4 * a);     int q = 0;     for (int i = 0; i < n; ++i) {       double t = d;       if (!q) {         if (a - x - t < 1e-5) {           t -= a - x;           x = a;           q++;         }       } else if (q == 1) {         if (a - y - t < 1e-5) {           t -= a - y;           y = a;           q++;         }       } else if (q == 2) {         if (x - t < 1e-5) {           t -= x;           x = 0;           q++;         }       } else {         if (y - t < 1e-5) {           t -= y;           y = 0;           q = 0;         }       }       while (t - a > 1e-5) {         x += dx[q] * a;         y += dy[q] * a;         q++;         if (q == 4) q = 0;         t -= a;       }       x += dx[q] * t;       y += dy[q] * t;       printf( %0.4f %0.4f  n , x, y);     }   }   int main() {     init();     solve();     return 0;   }   