2 条题解

  • 1
    @ 2025-1-13 20:28:30
    /*
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    int a,b;
    cin>>a>>b;
    if (a<b) cout<<a<<" "<<b;
    else cout<<b<<" "<<a;
    }
    
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    int a,b;
    cin>>a>>b;
    if (a-b>0) cout<<b<<" "<<a;
    else cout<<a<<" "<<b;
    }
    
    //头文件... ...
    long long a,b;
    cin>>a>>b;
    long long x,y;
    if (a>b){
    x=a; 
    y=b;
    }
    if (a<b){
    x=b;
    y=a;
    }
    cout<<y<<" "<<x;
    */
    

    If you do not know this,you can call me at 000000.

    • 0
      @ 2024-12-22 21:09:48

      #include<bits/stdc++.h>

      using namespace std;

      int main( ){

      int n,m;

      cin>>n>>m;

      if(n<m) cout<<n<<' '<<m;

      else if(m<n) cout<<m<<' '<<n;

      return 0;

      }

      • 1

      信息

      ID
      479
      时间
      1000ms
      内存
      64MiB
      难度
      7
      标签
      递交数
      163
      已通过
      37
      上传者