题解 | #鸡兔同笼#
鸡兔同笼
https://www.nowcoder.com/practice/fda725b4d9a14010bb145272cababef1
#include <stdio.h> int main() { int a,t; int max,min; while(scanf("%d",&a)!=EOF){ t=a; max=0;min=0; if(a%2!=0){ printf("0 0\n"); continue; } min+=t/4; t=t%4; min+=t/2; printf("%d %d\n",min,a/2); } }