2 solutions
-
0
Guest MOD
- 1
Information
- ID
- 1336
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 2
- Tags
- (None)
- # Submissions
- 51
- Accepted
- 31
- Uploaded By
#include<bits/stdc++.h>
#define int long long
using namespace std;
int a,b;
signed main(){
cin>>a>>b;
if(a>b) cout<<1<<" ";
else cout<<0<<" ";
if(a<=b) cout<<1<<" ";
else cout<<0<<" ";
if(a!=b) cout<<1<<" ";
else cout<<0<<" ";
return 0;
}
有实力
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
if(a>b){
cout<<1<<" ";
}
else{
cout<<0<<" ";
}
if(a<=b){
cout<<1<<" ";
}
else{
cout<<0<<" ";
}
if(a!=b){
cout<<1<<" ";
}
else{
cout<<0<<" ";
}
return 0;
}
By signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.