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

Guys, why does it say me fail if it wors fine?
Posted by zergrush 14 Dec 2012 20:58
#include <iostream>
#include <vector>
#include <math.h>
#include <iomanip>
#define ACCURACITY 4
using namespace std;

int main()
{
    vector<double> m;
    while (1)
    {
        double tmp;
        cin>>tmp;
        if (cin.eof()){break;}
        m.push_back(tmp);
    }
    for (int i=m.size()-1; i > -1; --i)
    {
        cout<<endl<<setprecision(ACCURACITY)<<fixed<<sqrt(m[i]);
    }
}

the results are the same with results of the task
Re: Guys, why does it say me fail if it wors fine?
Posted by Noob 14 Dec 2012 22:22


Edited by author 14.12.2012 22:23