#include #include #include #include #include #include #include #include #include #include #include #include #include #define debug_value(x) cerr << "line" << __LINE__ << ":<" << __func__ << ">:" << #x << "=" << x << endl; #define debug(x) cerr << "line" << __LINE__ << ":<" << __func__ << ">:" << x << endl; template inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; } template inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; } using namespace std; typedef long long ll; template vector> vec2d(int n, int m, T v){ return vector>(n, vector(m, v)); } template vector>> vec3d(int n, int m, int k, T v){ return vector>>(n, vector>(m, vector(k, v))); } template void print_vector(vector v, char delimiter=' '){ if(v.empty()) { cout << endl; return; } for(int i = 0; i+1 < v.size(); i++) cout << v[i] << delimiter; cout << v.back() << endl; } int main(){ ios::sync_with_stdio(false); cin.tie(0); cout << setprecision(10) << fixed; int r, k; cin >> r >> k; k++; double area = (double)r*(double)r*M_PI; int mx = (k-1)/2; vector v; for(int x = 1; x <= mx; x++){ auto f = [&](double h){ double theta = acos(h/r); double s = theta*r*r - h*r*sin(theta); return s >= ((area/k)*x); }; double rh = r, lh = 0; int iter = 50; while(iter--){ double h = (lh+rh)/2; if(f(h)){ lh = h; }else{ rh = h; } } v.push_back(lh); } vector ans = v; if(k%2 == 0) ans.push_back(0); reverse(v.begin(), v.end()); for(double x: v) ans.push_back(-x); for(double x: ans) cout << -x << '\n'; }