3 条题解
-
312209水宇辰 (12209水宇辰) LV 9 @ 2021-11-05 19:48:51
#include<iostream>
using namespace std;
int main()
{
double a,m,b,n;
cin>>a>>m>>b>>n;
if(a/m<b/n)
cout<<"xiao gu shi hao ren";
if(a/m>b/n)
cout<<"xiao wang shi huai dan";
if(a/m==b/n)
cout<<"yi xiang tian kai";return 0;
} -
22021-11-01 16:18:59@
#include<iostream>
using namespace std;
int main()
{
double a,m,b,n;
cin>>a>>m>>b>>n;
if(a/m<b/n)
cout<<"xiao gu shi hao ren";
if(a/m>b/n)
cout<<"xiao wang shi huai dan";
if(a/m==b/n)
cout<<"yi xiang tian kai";
return 0;
}
不要白嫖!!! -
-12021-11-26 21:01:10@
#include <iostream>
using namespace std;
int main()
{
int a,b,m,n;
cin>>a>>b>>m>>n;
if(1.0*a/m==1.0*b/n)
cout<<"yi xiang tian kai";
else
if(1.0*a/m>1.0*b/n)
cout<<"xiao wang shi huai dan";
else
cout<<"xiao gu shi hao ren";
return 0;
}
- 1
信息
- ID
- 1037
- 难度
- 2
- 分类
- (无)
- 标签
- 递交数
- 143
- 已通过
- 87
- 通过率
- 61%
- 上传者