ENG
RUS
Timus 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
how to deal with the stack overflow?
Posted by
chinaeli
1 Aug 2008 12:21
#include<iostream>
#include<cmath>
using namespace std;
void solve ( double a )
{
double b;
while ( cin>>b )
solve(b);
printf("%.4lf\n",sqrt(a));
}
int main ( )
{
double a;
cin>>a;
solve(a);
}
© 2000–2024
Timus Online Judge Team
. All rights reserved.