#include <stdio.h>
int main(){
//鸡兔同笼
//设鸡x,兔子为y
//2x+y=47;
//x+y=35;
int feet=94,head=35;//脚头
int x,y;//鸡兔总数
for(;;){
if(2*(head-y)+y==47){
printf("%d\t%d",y,(35-y));
break;
}
x++;y++;
}
return 0;
}
#include <stdio.h>
int main(){
//鸡兔同笼
//设鸡x,兔子为y
//2x+y=47;
//x+y=35;
int feet=94,head=35;//脚头
int x,y;//鸡兔总数
for(;;){
if(2*(head-y)+y==47){
printf("%d\t%d",y,(35-y));
break;
}
x++;y++;
}
return 0;
}