2 solutions

  • 0
    @ 2026-2-3 20:21:41

    #include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a>>b; if(a>b){ cout<<b<<" "<<a; }else if(b>a){ cout<<a<<" "<<b; } return 0; }

    • 0
      @ 2025-5-14 17:36:09
      #include<bits/stdc++.h>
      using namespace std;
      int main(){
        int a,b;
        cin>>a>>b;
        if(a>b){
          cout<<b<<" "<<a;
        }
        else if(a<b){
          cout<<a<<" "<<b;
        }
        else{
          cout<<a<<" "<<b;
        }
        return 0;
      }
      
      • 1

      Information

      ID
      1299
      Time
      1000ms
      Memory
      64MiB
      Difficulty
      10
      Tags
      # Submissions
      6
      Accepted
      3
      Uploaded By