战神老六
哒烧叶
耐高总冠军 张文杰
#include <bits/stdc++.h> using namespace std; int main(){ int a,b; cin >> a >> b; printf("%.2f",sqrt(aa+bb)); return 0; }
钟锜
#include <bits/stdc++.h> using namespace std; int main() { double a,b; cin>>a>>b; double c= pow(a,2)+pow(b,2); printf("%.2lf",sqrt(c)); return 0; }
~Lyney~
#include<iostream> #include<iomanip> #include<cmath> using namespace std; int main(){ float a,b; cin>>a>>b; cout<<std::fixed<<setprecision(2)<<sqrt(aa+bb); return 0; }
郭子谦
o͇͇͇͇͇͇͇͇͇͇͇͇͇͇͇
简单计算即可,考察的主要是 cmath 库的使用以及保留小数。
T
王子豪
倒车请故意
#include <bits/stdc++.h> using namespace std; int main(){ double a,b,c; cin>>a>>b; c=sqrt((aa)+(bb)); cout<<fixed<<setprecision(2)<<c<<endl; return 0; }
许肄霄
共31条