大佬帮忙看看,主要是c++编译成功洛谷里编译失败(大悲
查看原帖
大佬帮忙看看,主要是c++编译成功洛谷里编译失败(大悲
1008115
cinemaaa楼主2023/8/27 11:05
#include<bits/stdc++.h>
using namespace std;
int main()
{
	int t;
	double p=3.141593;
	cin>>t;
	if(t==1){
		cout<<"I love Luogu!";
	}
	if(t==2){
		cout<<6<<' '<<4;
	}
	if(t==3){
		cout<<3<<endl<<12<<endl<<2;
	}
	if(t==4){
		cout<<fixed<<setprecision(3)<<500/3.0;
	}
	if(t==5){
		cout<<15;
	}
	if(t==6){
		cout<<sqrt(6*6+9*9);
	}
	if(t==7){
		cout<<110<<endl<<90<<endl<<0;
	}
	if(t==8){
		cout<<cout<<p*10<<endl<<p*25<<endl<<4/3*p*125;
	}
	if(t==9){
		cout<<22;
	}
	if(t==10){
		cout<<9;
	}
	if(t==11){
		cout<<100/3.0;
	}
	if(t==12){
		cout<<(int)'M'-'A'+1<<endl<<(char)'A'+17;
	}
	if(t==13){
		cout<<(int)pow(4/3*p*4*4*1.0+p*10*10*1.0,1.0/3);
	}
	if(t==14){
		cout<<50;
	}
}
2023/8/27 11:05
加载中...