穷举算法求解鸡兔同笼问题(三)

【题目】spa 【源代码】code #include <stdio.h> #include <stdlib.h> int qiongju(int head,int foot,int *chicken,int *rabbit) { int re, i, j; re = 0; for (i=0;i<=head;i++) { j = head - i; if (i*2+j*4==foo
相关文章
相关标签/搜索