func_code_string: #include <bits/stdc++.h>   using namespace std;   const int maxn = 1e5 + 5;   int n;   double a, d;   double p[maxn], t[maxn], v[maxn], s[maxn];   int main() {     scanf( %d %lf %lf , &n, &a, &d);     for (int i = 0; i < n; i++)       scanf( %lf%lf , &t[i], &v[i]), p[i] = t[i] + v[i] / a;     s[0] = t[0] + v[0] / a + (d - 0.5 * a * v[0] / a * v[0] / a) / v[0];     if (0.5 * a * v[0] / a * v[0] / a > d)       s[0] = min(s[0], t[0] + sqrt((d * 2) / a));     for (int i = 1; i < n; i++) {       s[i] = t[i] + v[i] / a + (d - 0.5 * a * v[i] / a * v[i] / a) / v[i];       if (0.5 * a * v[i] / a * v[i] / a > d)         s[i] = min(s[i], t[i] + sqrt((d * 2) / a));       s[i] = max(s[i], s[i - 1]);     }     for (int i = 0; i < n; i++) printf( %.6f n , s[i]);   }   