// WEBLINK #include #include #include #include #include #include #include using namespace std; using ll = long long; using ii = pair; using iii = pair; using vi = vector; using vvi = vector; using vll = vector; using vii = vector; using viii = vector; #define pb push_back #define fst first #define snd second #define all(x) (x).begin,(x).end() templateT amax(T &a, T1 b) {if (b > a)a = b; return a;} templateT amin(T &a, T1 b) {if (b < a)a = b; return a;} // ---------- DEBUG -------------------- // #define ON_PC #ifdef ON_PC #include #else #define deb(x...) #endif /////////////////////////////////// const double pi = 3.14159265358979323846; const double eps = 1e-10; double findth(double val) { double l = 0; double r = pi; while (r - l > eps) { double m = (l + r) / 2; double v = m - sin(m); if (v < val - eps) l = m; else if (v > val + eps) r = m; else return m; } return l; } int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); double R; int k; cin >> R >> k; if (k == 1) { cout << 0 << endl; return 0; } double rt = 1 / (k + 1); vector TH; for (int rt = 1; rt <= k / 2; rt++) { double rT = rt; rT /= (k + 1); TH.push_back(findth(rT * 2 * pi)); } vector TP; for (auto x : TH) TP.push_back(R * cos(x / 2)); int n = TP.size(); for (int i = 0; i < n; i++) cout << - TP[i] << endl; if (k & 1) cout << 0 << endl; for (int i = n - 1; i >= 0; i--) cout << TP[i] << endl; return 0; }