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 Test 9 ( C )
Posted by EvGeniy[ONPU] 19 Oct 2009 21:24
#include <stdio.h>
#include <math.h>
int main(void){
    long float arr[65536];
    int i = 0;
    do {
    if (scanf("%lf",&arr[i])==EOF)
        break;
    i++;
    }while(i<65536);
    for( --i; i >= 0; i--)
        printf("%.4lf\n",sqrt(arr[i]));
    return 0 ;
}
Re: Wrong answer Test 9 ( C )
Posted by icanwin 19 Oct 2009 22:29
zero blank zero blank...
it is one figure per two bytes
thereby 256*2^10 / 2 = 131072
131072 >> 0x10000