yumanjun666 @ 2024-08-07 09:49:55
难到我了,对于我这种数学不好的人来说简直太难了
by LIONELMESSIYYDS @ 2024-08-07 09:55:45
@yumanjun666 简单
by LIONELMESSIYYDS @ 2024-08-07 09:56:07
@yumanjun666
#include<bits/stdc++.h>
using namespace std;
int main(){
int T;
cin >> T;
if (T == 1) {
cout << "I love Luogu!";
} else if (T == 2) {
cout << 2 + 4 << " " << 10 - 2 - 4;
} else if (T == 3) {
cout<<"3"<<endl<<"12"<<endl<<"2";
} else if (T == 4) {
cout<<fixed<<setprecision(3)<<1.0*500/3;
} else if (T == 5) {
cout<<(220+260)/(20+12);
} else if (T == 6) {
cout<<sqrt(6*6+9*9);
} else if (T == 7) {
cout<<"110"<<endl<<"90"<<endl<<"0";
} else if (T == 8) {
double a=3.141593;
cout<<10*a<<endl<<25*a<<endl<<125*1.0*4/3*a;
} else if (T == 9) {
cout<<"22";
} else if (T == 10) {
cout<<"9";
} else if (T == 11) {
cout<<1.0*100/3;
} else if (T == 12) {
cout<<"13"<<endl<<"R";
} else if (T == 13) {
int r1=4,r2=10;
double pi=3.141593;
double v=4.0/3*pi*r1*r1*r1+4.0/3*pi*r2*r2*r2;
v=pow(v,1.0/3);
printf("%.0lf\n",v);
} else if (T == 14) {
cout<<"50";
}
return 0;
}