B-Reverse Root

 avatar
user_5323392
c_cpp
a month ago
461 B
1
Indexable
Never
#include <bits/stdc++.h>
using namespace std;
using ll = long long;

void solve() {

    ll n;
    vector<ll> a;
    while (cin >> n) {
        a.push_back(n);
    }
    cout << fixed << setprecision(4);
    for (int i = a.size() - 1; i >= 0; i--) {
        cout << sqrt(a[i]) << '\n';
    }
}

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
    freopen("input.txt", "r", stdin);

    solve();
    return 0;
}
Leave a Comment