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

1001. Обратный корень
Posted by George 23 Oct 2011 00:29
While compiler write: "Wrong answer"
On my PC answer is correct...

#include <iostream>
#include <math.h>
#include <vector>
using namespace std;

int main()
{
    double n;

    vector<double> v;

    while(cin >> n){
        v.push_back(n);
    }

    for(unsigned int i=v.size();i>0;i--)
    {
        cout.precision(4);
        cout<<fixed<<sqrt(v[i-1])<<endl;
    }


    return 0;
}