tyyxbx @ 2022-12-16 19:18:21
#include<bits/stdc++.h>
using namespace std;
const double pi=3.141593;
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<<15<<endl;
} else if (T == 6) {
cout<<sqrt(117);
} else if (T == 7) {
cout<<110<<endl<<90<<endl<<0;
} else if (T == 8) {
cout<<3.141593*5*2<<endl<<3.141593*5*5<<endl<<3.141593*4/3*5*5*5;
} else if (T == 9) {
cout<<22<<endl;
} else if (T == 10) {
cout<<9<<endl;
} else if (T == 11) {
cout<<1.0*100/3;
} else if (T == 12) {
cout<<(int)('M'-'A')+1<<endl<<(char)(18+'A'-1)<<endl;
} else if (T == 13) {
cout<<(int)(pow(4/3*pi*(4*4*4+10*10*10),1.0/3));
} else if (T == 14) {
cout<<50<<endl;
}
return 0;
}
by SDUT_Sheep @ 2022-12-16 19:38:21
4.0/3
by liujiafang @ 2022-12-16 19:53:08
4.0/3.0……
by sunchenxi12 @ 2023-06-17 19:31:16
要转化成浮点型吧我也就提交了114514次