// #define _GLIBCXX_DEBUG #include using namespace std; #include using namespace atcoder; using ll = long long; #define rep(i,n) for (ll i = 0; i < (n); ++i) using vl = vector; using vvl = vector; using P = pair; #define pb push_back #define int long long #define double long double #define INF (ll) 3e18 // Ctrl + Shift + B コンパイル // Ctrl + C 中断 // ./m 実行 signed main(){ double r; int k; cin >> r >> k; // k個の線について二分探索すべきか。 // 弓型の面積の公式があるのでそれを使う auto calc = [&](double x) -> double { // y = xの線分の計算 double h = abs(1 - abs(x)); double theta = 2*acos(1 - h / 1); double L = 1 * theta; double c = 2 * sqrt(h*(2*1-h)); double S = theta / 2 - (1 - h)*sqrt(h*(2*1-h)); return S; }; set ans; for(double s = acos(-1) / (k+1); ans.size() != (k)/2; s += acos(-1) / (k+1)){ double cen = 0; double far = 1; rep(_,100){ double mid = (cen + far) / 2; if (calc(mid) < s) far = mid; else cen = mid; } ans.insert(cen); } set realans; for(auto x : ans) realans.insert(x); for(auto x : ans) realans.insert(-x); if (k % 2) realans.insert(0); cout << fixed << setprecision(20); for(auto x : realans) cout << x * r << endl; }