|
|
back to boardwhy is the sollution code for 1001 wrong #include <iostream> #include <iomanip> #include<math.h> #include<vector> using namespace std; int main() { cout<<setiosflags(ios::fixed)<<setprecision(4); vector<double>v; double a; for(int i=0;!cin.eof();i++ ) { cin>>a; v.push_back(sqrt(a)); } for(int j=v.size()-2;j>=0;j--) {cout<<v[j]<<"\n";} return 0; } |
|
|