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

Where is my fault?(C answer)
Posted by LK Duan 4 Jan 2018 18:01
#include<stdio.h>
#include<math.h>
#define size 256*1024/sizeof(long long)
int main()
{
  int s=0,l;
  long long int a[size+1];
  do{l=scanf("%lld",a[s++]);}while(l!=EOF);
  for(s=s-2;s>=0;s--)
     printf("%.4Lf\n", sqrt((double)a[s]));

}
Re: Where is my fault?(C answer)
Posted by Laise (Alexey Chernenkov) 10 Jan 2018 19:19
The input may contain upto 256 * 1024 / 2 numbers ("1 1 1 1 1 ...").