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

What's wrong?
Posted by Senya (USTU Phisical faculty) 13 Jul 2007 03:36
My code : .....
#include <iostream>
#include <math.h>
#include <vector>

using namespace std;
int main()
{
    vector<double> v1;
    cout.precision(5);
    while (cin >> temp){
        v1.push_back(sqrt(double(temp)));
    }
    for (int i = 1; i <= v1.size(); i++)
        cout << v1[v1.size()-i];
    return 0;
}
Why I have wrong answer?

Edited by author 13.07.2007 03:37

Edited by author 13.07.2007 03:38
Re: What's wrong?
Posted by Chmel_Tolstiy 13 Jul 2007 03:41
every answer in new line