ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1001. Reverse Root

problem 1001 c++
Posted by Vasilisa 18 Feb 2024 11:36
//please tell me what's wrong, cause i cant understand...

#include <bits/stdc++.h>
#include<fstream>
#define all(a) (a).begin(), (a).end()
#define ll long long
#define sz size
#define dbl double
#define vll vector <ll>
#define INF LLONG_MAX
#define uniq(x) x.resize(unique(begin(x),end(x))-begin(x))
#define forik(i,m,n) for(ll i=m;i<n;++i)
#define re return

using namespace std;

int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.tie();
    vll numbers;
    ll num;
    while (cin >> num) {
        numbers.push_back(num);
    }
    for (ll i = numbers.size() - 1; i >= 0; i--) {
        dbl nek = sqrt(numbers[i]);
        cout << fixed << setprecision(4) << nek << endl;
    }
    re 0;
}