题解
2026-08-03 09:28:35
发布于:浙江
23阅读
0回复
0点赞
代码如下
#include <bits/stdc++.h>
using namespace std;
int main(){
int n,m; // 代表头数和脚数
cin >> n >> m;
int x = (m - n * 2) / 2; // 鸡的个数
int y = n - x; // 兔的脚数
cout << y << endl << x;
return 0;
}
全部评论 2
这个真是超级好用哇!!!!
5天前 来自 广西
0每题都能看到你耶!

1周前 来自 浙江
0

6天前 来自 浙江
0













有帮助,赞一个