资深守护
#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
int a,b,c;
cin>>a>>b>>c;
if(a>b&&a>c)
{
cout<<"1"<<endl;
}else {
cout<<"0"<<endl;
}
if(b>a||b>c)
{
cout<<"1"<<endl;
}else {
cout<<"0"<<endl;
}
cout<<"1"<<endl;
return 0;
}
60分
哪错了???
方宇哲在2018-10-20 20:09:39追加了内容
#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
int a,b,c;
cin>>a>>b>>c;
if(a>b&&a>c)
{
cout<<"1"<<endl;
}else {
cout<<"0"<<endl;
}
if(b>a||b>c)
{
cout<<"1"<<endl;
}else {
cout<<"0"<<endl;
}
if(c<a)
{
cout<<"1"<<endl;
}else {
cout<<"0"<<endl;
}
return 0;
}
90分
初级光能
呵呵,纯if,else判断
核心:
int 型变量 a,b,c;
输入>>a>>b>>c;
if(a>b&&a>c) cout<<"1"<<endl;
else cout<<"0"<<endl;
if(b>a||b>c)
cout<<"1"<<endl;
else cout<<"0"<<endl;
if(!(c>a))
cout<<"1"<<endl;
else cout<<"0"<<endl;