有没有答案

rsx  •  18天前


1


评论:

我有


万明宇  •  18天前

 


ggh  •  18天前

你在石老师的社团吗


万明宇  •  18天前

#include <iostream>
using namespace std;

int main() {
   int a, b;
   cin >> a >> b;
   
   if (a > b) {
       // 交换a和b的值
       int temp = a;
       a = b;
       b = temp;
   }
   
   cout << a << " " << b << endl;
   return 0;


ggh  •  18天前

#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; } return 0; }


万明宇  •  18天前

加}


ggh  •  18天前

#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; } 

return 0; }


万明宇  •  18天前