#include<cstdio>
#include<iostream>
using namespace std;
int main()
{
int h,f,j,t;
cin>>h>>f;
j=(4*h-f)/2;
t=h-j;
cout<<j<<" "<<t<<endl;
return 0;
}
信息学奥赛一本通2068
最新推荐文章于 2024-03-17 10:11:59 发布
#include<cstdio>
#include<iostream>
using namespace std;
int main()
{
int h,f,j,t;
cin>>h>>f;
j=(4*h-f)/2;
t=h-j;
cout<<j<<" "<<t<<endl;
return 0;
}