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

PLS Help me someone ! What is the problem here...
Posted by AAA 24 Nov 2013 23:12
#include <stdio.h>
#include <math.h>

int main(void)
{
    long long number[1000000];
    int i=0,k;
    while(scanf("%lld", &number[i++]) == 1);

    k=i-1;

    while(k>0)
    {
         printf("%.4lf\n", sqrt((double)number[--k]));
    }

    return 0;

}
Re: PLS Help me someone ! What is the problem here...
Posted by [ONPU-13]Asalle 2 Feb 2014 21:07
while(scanf("%lld", &number[i++]) != EOF){/*...*/}