0
3
已采纳
蒋智航
高级天翼
高级天翼
直接cout简洁方便
cout<<(a>b)<<" "<<(a<b)<<" "<<(a==b)<<" "<<(a>=b+c)<<" "<<(a<=b+c)<<" "<<(a!=b);
3
3
0
0
黄依成
中级天翼
中级天翼
如果(a>b) 输出<<1<<" ";
否则 输出<<0<<" ";
如果(a<b) 输出<<1<<" ";
否则 输出<<0<<" ";
如果(a==b) 输出<<1<<" ";
否则 输出<<0<<" ";
如果(a>=b+c) 输出<<1<<" ";
否则 输出<<0<<" ";
如果(a<=b+c) 输出<<1<<" ";
否则 输出<<0<<" ";
如果(a!=b) 输出<<1<<" ";
否则 输出<<0<<" ";
黄依成在2020-02-07 10:45:32追加了内容
保AC
0
0
邵逸儒
中级天翼
中级天翼
int a,b,c;
cin>>a>>b>>c;
if (a>b)
{
cout<<"1"<<" ";
}else cout<<"0"<<" ";
if (a<b)
{
cout<<"1"<<" ";
} else cout<<"0"<<" ";
if (a==b)
{
cout<<"1"<<" ";
}else cout<<"0"<<" ";
if ( a>=b+c)
{
cout<<"1"<<" ";
}else cout<<"0"<<" ";
if (a<=b+c)
{
cout<<"1"<<" ";
}else cout<<"0"<<" ";
if (a!=b)
{
cout<<"1"<<" ";
}else cout<<"0"<<" ";
return 0;
0
0
0