- 博客(1)
- 收藏
- 关注
原创 鸡兔同笼问题
一只脚总数a,则笼子最少多少只动物,最多多少只 #include <stdio.h> int main(){ int Feets=0; int n=0; scanf("%d",&n); while(n){ scanf("%d",&Feets); if(Feets%4==0) printf("%d %d\n",Feets/4,Feets/2); else if(Feets%4!=0&&Feets%2==0) printf("%d %d\n",(Fe
2021-03-10 09:12:38
93
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人