2 条题解

  • 2
    @ 2025-7-25 9:22:55

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

    • 1
      @ 2025-12-27 12:32:05

      if (a>b) swap(a,b); // swap为交换两个值。

      • 1

      信息

      ID
      593
      时间
      1000ms
      内存
      64MiB
      难度
      3
      标签
      递交数
      47
      已通过
      25
      上传者