竞赛
考级
耐高总冠军 张文杰
简单计算即可,考察的主要是 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; }
霄
我要AC
#include <iostream> #include <cmath> #include <iomanip> using namespace std; int main() { int a, b; cin >> a >> b; double c = sqrt(static_cast<double>(a * a + b * b)); cout << fixed << setprecision(2) << c << endl; return 0; }
赵承恺(互关)
#include<bits/stdc++.h> using namespace std; int main(){ double a,b; cin>>a>>b; printf("%.2lf",sqrt(aa+bb)); return 0; }
LS_YZY
#include<cstring> #include<cmath> #include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a>>b; float c; c=sqrt(pow(a,2)+pow(b,2)); cout<<fixed<<setprecision(2)<<c; return 0; }
ཌༀ130****2142ༀད
#include<iostream> #include<cmath> using namespace std; int main(){ int a,b; cin>>a>>b; double c; c=sqrt(aa+bb); printf("%.2lf",c); return 0; }
无名大侠
#include<bits/stdc++.h>; using namespace std; int main(){short a,b,c;cin>>a>>b;c=aa+bb;printf("%.2f",sqrt(c));return 0;}
射手骑着龙——互
136****4819
#include <bits/stdc++.h> using namespace std; int main(){ int a,b; cin >> a >> b; printf("%.2f",sqrt(aa+bb)); return 0; }
T0
#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; }
:)
人
倒车请故意
共56条
提交答案之后,这里将显示提交结果~