"""鸡兔同笼""" 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
昵称:苒若
2024-04-12 18:12:08
"""鸡兔同笼""" 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
昵称:苒若