2 solutions

  • 3
    @ 2025-4-25 17:34:42
    #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;
    }
    
    
  • 1
    @ 2025-4-23 18:20:15
    #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;
    }
    
    • 1

    Information

    ID
    1336
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    2
    Tags
    (None)
    # Submissions
    51
    Accepted
    31
    Uploaded By