一只脚总数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",(Feets-2)/4,Feets/2);
else
printf("0 0\n");
n--;
}
}