2 solutions
-
0
Guest MOD
- 1
Information
- ID
- 1299
- Time
- 1000ms
- Memory
- 64MiB
- Difficulty
- 10
- Tags
- # Submissions
- 6
- Accepted
- 3
- Uploaded By
#include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a>>b; if(a>b){ cout<<b<<" "<<a; }else if(b>a){ cout<<a<<" "<<b; } return 0; }
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
if(a>b){
cout<<b<<" "<<a;
}
else if(a<b){
cout<<a<<" "<<b;
}
else{
cout<<a<<" "<<b;
}
return 0;
}
By signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.