#include<iostream>
#include <iomanip>
#include <cmath>
// 填上你觉得需要的其他头文件
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<<14/4<<endl;
cout<<14-2<<endl;
cout<<2<<endl;
} else if (T == 4) {
cout.setf(ios::fixed);
cout<<setprecision(3);
cout<<500.0/3;
} else if (T == 5) {
cout<<(260+220)/32;
} else if (T == 6) {
cout<<sqrt(6*6+9*9);
} else if (T == 7) {
cout<<110<<endl;
cout<<90<<endl;
cout<<0<<endl;
} else if (T == 8) {
const float pi =3.141593;
float zhou,mian,ti;
zhou = 2*pi*5;
mian = pi*5*5;
ti = (4.0/3)*pi*5*5*5;
cout<<zhou<<endl;
cout<<mian<<endl;
cout<<ti<<endl;
} else if (T == 9) {
int x = 1;
for(int i = 0;i<3;i++)
{
x = (x+1)*2;
}
cout<<x;
} else if (T == 10) {
cout<<9;
} else if (T == 11) {
cout << (float)100 / 3;
} else if (T == 12) {
char a = 'A';
char m = 'M';
char n ;
int n1;
int a1 = a;
int m1 = m;
n1 = a1 + 18-1;
n = n1;
cout<<m1-a1+1<<endl;
cout<<n;
} else if (T == 13) {
const float pi =3.141593;
float x;
x = 4.0/3*pi*(4*4*4+10*10*10);
cout<<(int)pow(x,1.0/3);
} else if (T == 14) {
int a[2];
int j = 0;
for (int i = 0; i < 100; i++)
{
if ((110 - i) * (10 + i) == 3500)
{
a[j++] = 110 - i;
}
}
if (a[0] >= a[1])
cout << a[1];
else
cout << a[0];
}
return 0;
}
洛谷2433
最新推荐文章于 2023-07-04 17:18:57 发布