B-Reverse Root
user_5323392
c_cpp
2 years ago
461 B
9
Indexable
#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;
}
Editor is loading...
Leave a Comment