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

input taken in while loop, sqrt is calculated with 9 point precision then also WA.
Posted by neel rayal 14 Dec 2019 17:59
#include<bits/stdc++.h>
using namespace std;

int main()
{
    unsigned long long int n;
    while(cin >> n)
    {
        cout << fixed << setprecision(9) << sqrt(n) << "\n";
    }
return 0;
}