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

Wrong Answer
Posted by Vinicius Zhu 19 Oct 2012 10:13
Can anyone tell me where I am mistaken?

#include <stdio.h>
#include <stdlib.h>
#include <math.h>

int main()
{
    unsigned int input[65536];
    int counter=0;
    while(scanf("%u", &(input[counter++])) != EOF);
    while (counter-- > 0) printf("%.4f\n", sqrt((double)(input[counter])));
    return 0;
}

Edited by author 19.10.2012 22:03
Re: Wrong Answer
Posted by Kitty 24 Oct 2012 12:37
why don't you use 'double' or 'long double' for input[65536] directly?
Re: Wrong Answer
Posted by Your_Y 2 Feb 2013 15:02
Are u a girl?