2 solutions

  • 0
    @ 2026-10-21 21:11:41
    #include<iostream>
    using namespace std;
    int main()
    {
        int a,b;
        cin >> a >> b ;
        bool c = a > b;
        if (c!=0)
        {
            cout << a << endl;
        }
        else
        {
            cout << b << endl;
        }
        
    }
    
    • 0
      @ 2026-10-9 15:49:26
      #include<bits/stdc++.h>
      using namespace std;
      typedef long long ll;
      int main(){
          ll a,b;
          cin>>a>>b;
          cout<<max(a,b);
          return 0;
      }
      
      • 1

      Information

      ID
      291
      Time
      1000ms
      Memory
      256MiB
      Difficulty
      1
      Tags
      (None)
      # Submissions
      117
      Accepted
      47
      Uploaded By