|
|
back to boardWhy? For this problem,when I used G++,I got AC,but when I used GCC,I got WA so many times. Why? #include<stdio.h> #include<math.h> int main() { double b[3000000]; int n=0; double temp; while(scanf("%lf",&temp)!=EOF) b[n++]=sqrt(temp); for(int i=n-1;i>=0;i--) printf("%.4lf\n",b[i]); return 0; } Edited by author 26.12.2013 18:14 |
|
|