一次性AC,用时7分钟。
#include<iostream>
using namespace std;
int jh(int x,int y)
{
int lsbl=0;
lsbl=x;
x=y;
y=x;
return x;
}
int main()
{
// freopen("xxx.in","r",stdin);
// freopen("yyy.out","w",stdout);
int x,y,he=0,f=0;
cin >> x >> y;
he=x+y;
f=jh(x,y);
cout << f << " " << (he-f);
// fclose(stdin);
// fclose(stdout);
return 0;
}