You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#include <bits/stdc++.h>
|
|
|
|
using namespace std;
|
|
|
|
int main() {
|
|
int a, b;
|
|
cin >> a >> b;
|
|
|
|
//更换1
|
|
swap(a, b);
|
|
|
|
cout << a << " " << b;
|
|
cout << endl;
|
|
|
|
//更换2
|
|
int c;
|
|
c = a;
|
|
a = b;
|
|
b = c;
|
|
cout << a << " " << b;
|
|
return 0;
|
|
}
|