9 条题解
-
2曾致瑾 (zengzhijin) LV 6 @ 2023-1-23 14:50:06
#include<iostream> using namespace std; int main(){ int a,b; cin>>a>>b; swap(a,b); cout<<a<<" "<<b; return 0; }
-
12022-11-13 17:18:08@
#include <iostream> using namespace std;int main(){int a,b;cin>>a>>b;cout<<b<<" "<<a;return 0;}
-
02024-7-28 9:12:48@
#include<iostream> using namespace std; int main(){ int a,b; cin>>a>>b; cout<<b<<" "<<a; }
-
02024-3-26 21:58:39@
#include <iostream> #include <cstdio> using namespace std; int main() { int a,b;//创建变量 cin>>a>>b;//赋值ab值 swap(a,b);//交换ab值 cout<<a<<" "<<b;//输出交换后ab值 return 0; }
-
02024-3-19 20:14:16@
#include <iostream> using namespace std; int main() { int a , b , c,d; cin>>a>>b; c=a; a=b; b=c; cout<<a<<" "<<b;
}
-
02024-1-30 11:53:23@
#include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a>>b; swap(a,b);//交换a和b值 cout<<a<<" "<<b; }
-
02022-10-17 17:32:33@
#include <iostream> using namespace std; int main() { int a,b,c,d; cin>>a>>b; c=b; d=a; printf("%d %d",c,d); }
-
-22022-8-10 13:23:34@
#include <bits/stdc++.h>
using namespace std;
int main(void) { int a, b, x;
cin >> a >> b; cout << b << " " << a; return 0;
}
-
-42022-1-24 9:34:47@
#include <stdio.h> #include <iostream> using namespace std; int main() { int a,b; cin >> a >> b; cout << b << " " << a <<endl; }
- 1
信息
- ID
- 851
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 5
- 标签
- 递交数
- 1415
- 已通过
- 593
- 上传者