已解决 王忆甫 中级守护 #include<iostream> #include<cstdio> using namespace std; int main() { int a,b; cin>>a>>b; if(a>b){ cout<<a*2; cout<<" "; cout<<b/2; } else if(a<b){ cout<<b*2; cout<<" "; cout<<a/2; } else if(a==b){ cout<<a; cout<<" "; cout<<b; } return 0; }