蒟蒻 求调
查看原帖
蒟蒻 求调
896912
homoteam_ikun楼主2023/1/5 11:56

rt,51分

#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) {
		int a=14.0/4;
		cout<<a<<" "<<a*4<<" "<<14-a*4;
	} else if (T == 4) {
		cout<<fixed<<setprecision(6)<<500.0/3;
	} else if (T == 5) {
		cout<<(260+220)/(12+20)<<endl;
	} else if (T == 6) {
		cout<<sqrt(6*6+9*9);
	} else if (T == 7) {
		int a;
		cout<<a+10<<a-20<<"0";
	} else if (T == 8) {
		cout<<2*3.141593*5<<5*5*3.141593<<4/3*3.141593*5*5*5;
	} else if (T == 9) {
		cout<<(((1+1)*2+1)*2+1)*2;
	} else if (T == 10) {
		cout<<9;
	} else if (T == 11) {
		cout<<100/(8-5);
	} else if (T == 12) {
		cout<<13<<"R";
	} else if (T == 13) {
		cout<<(int)(pow(4/3*3.141593*(4*4*4+10*10*10),1.0*1/3));
	} else if (T == 14) {
		cout<<50;
	}
	return 0;
}
2023/1/5 11:56
加载中...