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

help me. wrong answer in test 1 (C)
Posted by Evgeny 29 Dec 2013 06:03
#include <stdio.h>
#include <math.h>

int foo () {
long long int a;
while(scanf ("%lld",&a)!=EOF)
{ foo ();
  printf ("%.4f\n",sqrt ((double)a));
  return 0; }
}

int main () {
foo ();
return 0;
}
Re: help me. wrong answer in test 1 (C)
Posted by Evgeny 29 Dec 2013 06:14
)) decided
it's need to use double in scanf