#include using namespace std; using ll = long long; using ld = long double; using Pair = pair; using Tuple = tuple; using VI1 = vector; using VI2 = vector; using VL1 = vector; using VL2 = vector; using VD1 = vector; using VD2 = vector; using VB1 = vector; using VB2 = vector; using VP1 = vector; using VP2 = vector; using VT1 = vector; using VT2 = vector; using Queue = queue; using DQ = deque; using PQ = priority_queue, greater>; using Table = VI2; using Graph = VI2; /** io */ template std::vector input_vec(int N); template void output_row(std::vector &row); template void output_col(std::vector &col); void outputYesNo(bool yes, const string &Yes = "Yes", const string &No = "No"); /** minmax */ template bool chmin(T &a, T b); template bool chmax(T &a, T b); ld func(ld x) { auto phi = acosl(x); return (phi - x * sqrtl(abs(1 - x * x))) / 2; } VD1 solve() { // 90 度回転させて考える。 int R, K; cin >> R >> K; if (K == 1) { return {0}; } ld area = ld(M_PI) / (2 * (K + 1)); int K2 = K / 2; VD1 csum(K2 + 1, 0); VD1 x(K2 + 1, 1); for (int i = 0; i < K2; ++i) { ld ok = 0; ld ng = x.at(i); for (int j = 0; j < 60; ++j) { auto mid = (ok + ng) / 2; if (csum.at(i) + area < func(mid)) ok = mid; else ng = mid; } x.at(i + 1) = ok; csum.at(i + 1) = csum.at(0) + func(ok); } VD1 result(K, 0); for (int i = 0; i < K2; ++i) { auto x1 = x.at(i + 1) * R; result.at(i) = -x1; result.at(K - 1 - i) = x1; } return result; } int main() { std::ios::sync_with_stdio(false); std::cin.tie(nullptr); int t = 1; // cin >> t; while (t--) { auto result = solve(); // cout << result << '\n'; // output_row(result); cout << setprecision(10); output_col(result); // outputYesNo(result, "Yes", "No"); } } /** @note 使用頻度が高く毎回貼付するのが面倒なライブラリを実装しておく。*/ template std::vector input_vec(int N) { std::vector v(N); for (auto &vi : v) { cin >> vi; } return v; } void outputYesNo(bool yes, const string &Yes, const string &No) { if (yes) cout << Yes << '\n'; else cout << No << '\n'; } template void output_row(std::vector &row) { int N = row.size(); for (int i = 0; i < N; ++i) { if (i > 0) cout << ' '; cout << row.at(i); } cout << '\n'; } template void output_col(std::vector &col) { int N = col.size(); for (int i = 0; i < N; ++i) { cout << col.at(i) << '\n'; } } template bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return false; } template bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; }