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

Crash (access violation)
Posted by Grigorenko Vlad 6 May 2012 11:13
#include<stdio.h>
#include<math.h>

int main(void){
    double   A[129280];
    double k;
    int  i,j;
    i=0;
    while(scanf("%lf",&k)!=EOF){
        A[i]=k;
        i++;
    }
    for(j=i-1;j>=0;j--)
        printf("%.4lf\n",sqrt(A[j]));
return 0;
}