鸡兔同笼
作者:互联网
"""鸡兔同笼""" n = int(input()) l = list() for k in range(n): a = int(input()) if a%2 != 0: min = max = 0 else: j = a/4 i = a%4/2 min = int(i+j) max = int(a/2) l += [(min,max)] for b,c in l: print (b,c)
学号:2020310143012
昵称:苒若
标签:鸡兔同笼,a%,min,int,max,input 来源: https://www.cnblogs.com/zhangfurong/p/15317844.html