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

Why Wrong Answer on test 1?
Posted by Rainsoul 2 Nov 2010 17:03
#include <iostream>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iomanip>

using namespace std;

void recursive_print(){
    double A; char ch;
    if ((ch = getchar()) != EOF){
        cin >> A;
        recursive_print();
        cout << endl << setiosflags(ios::showpoint | ios::fixed) << setprecision(4) << sqrt(A);
    }
}

int main(){
    recursive_print();
}