Max_Wgj @ 2024-03-09 17:04:12
#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;
cout << 12 << endl;
cout << 2 << endl;
} else if (T == 4) {
cout << 166.667;
} else if (T == 5) {
cout << 15;
} else if (T == 6) {
cout << 10.8167;
} else if (T == 7) {
cout << 110 << endl << 90 << endl << 0;
} else if (T == 8) {
cout << 31.4159 <<endl << 78.5398 <<endl<< 523.599;
} else if (T == 9) {
cout << 22;
} else if (T == 10) {
cout << 9;
} else if (T == 11) {
cout << 33.3333;
} else if (T == 12) {
cout << 13 << endl << "R";
} else if (T == 13) {
cout << fixed << setprecision(0) << 3.141593 * 4 * 4 * 4 + 3.141593 * 10 * 10 * 10;
} else if (T == 14) {
cout << 50;
}
return 0;
}
by huang_yi_hang2014 @ 2024-03-09 17:12:41
T=13时是
1.0/3*(4.0/3*3.141593*(4*4*4+10*10*10));
by huang_yi_hang2014 @ 2024-03-09 17:15:41
#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;
cout << 12 << endl;
cout << 2 << endl;
} else if (T == 4) {
cout << 166.667;
} else if (T == 5) {
cout << 15;
} else if (T == 6) {
cout << 10.8167;
} else if (T == 7) {
cout << 110 << endl << 90 << endl << 0;
} else if (T == 8) {
cout << 31.4159 <<endl << 78.5398 <<endl<< 523.599;
} else if (T == 9) {
cout << 22;
} else if (T == 10) {
cout << 9;
} else if (T == 11) {
cout << 33.3333;
} else if (T == 12) {
cout << 13 << endl << "R";
} else if (T == 13) {
int r1=4,r2=10;
cout << fixed << setprecision(0) << pow((4.0/3*3.141593*(4*4*4+10*10*10)),1.0/3);
} else if (T == 14) {
cout << 50;
}
return 0;
}
by Max_Wgj @ 2024-03-10 12:55:54
@aligeee 蟹蟹!!♪(・ω・)ノ
by huang_yi_hang2014 @ 2024-03-10 13:05:23
@20121018Wgj hehe