|
|
вернуться в форумWhy WA on test 1? #include <iostream> #include <cstdio> #include <cmath> using namespace std; long long i,j=0; double a[100000000]; double x; int main () { while (cin>>i) { a[j]=sqrt((double)(i)); j++; } for (i=j-1;i>=0;i--) { x=(long long)(a[i]*10000+0.5)/10000; printf ("%0.4lf",a[i]); } return (0); } Re: Why WA on test 1? I have already AC |
|
|