#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
int n, a, min, max;
scanf("%d",&n);
while(n--)
{
min = max = 0;
scanf("%d",&a);
if ( a%2 != 0)
{
printf("0 0\n");
}
else
{
if( a%4 == 0)
{
min = a/4;
max = a/2;
}
else
{
min = a/4+1;
max = a/2;
}
printf("%d %d\n",min,max);
}
}
system("PAUSE");
return 0;
}
2.1例题--鸡兔同笼--2750
最新推荐文章于 2022-07-06 23:47:20 发布