洛希极限

在这里插入图片描述在这里插入图片描述
读懂题意
读懂题意
读懂题意

#include<iostream>
#include<cstdio>
using namespace std;
int main(){
    
    
	double a,c,aide,ti;
    int b;
	bool f=false;
	cin>>a>>b>>c;
	if(b==0) ti=2.455;
	else ti=1.26;
	aide=ti*a;
	if(aide>=c) f=true;
	if(f){
    
    
		printf("%.2lf T_T",aide);
	}
	else printf("%.2lf ^_^",aide);
	return 0;
}

猜你喜欢

转载自blog.csdn.net/interestingddd/article/details/115047653