#include "stdio.h" void main() { int x,y,h,f; printf("input h,f:") ; scanf("%d,%d",&h,&f); x=2*h-f/2; y=f/2-h; printf("鸡%d只,兔%d只",x,y); }