|
|
back to boardWhere is my fault?(C answer) #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) The input may contain upto 256 * 1024 / 2 numbers ("1 1 1 1 1 ..."). |
|
|