#include<bits/stdc++.h>
using namespace std;
const double PI=3.14159;
int main()
{
int h,f,j,t;
cin>>h>>f;
j=(4*h-f)/2;
t=h-j;
cout<<j<<" "<<t<<endl;
return 0;
}
一本通【例2.6】鸡兔同笼
最新推荐文章于 2024-03-06 15:11:02 发布
#include<bits/stdc++.h>
using namespace std;
const double PI=3.14159;
int main()
{
int h,f,j,t;
cin>>h>>f;
j=(4*h-f)/2;
t=h-j;
cout<<j<<" "<<t<<endl;
return 0;
}