题解 | #鸡兔同笼#简单判断一下就行
鸡兔同笼
https://www.nowcoder.com/practice/fda725b4d9a14010bb145272cababef1
while True: try: a = int(input()) if a % 2 != 0: print(0, 0) else: print(a // 4 + (a % 4 == 2), a // 2) except: break
鸡兔同笼
https://www.nowcoder.com/practice/fda725b4d9a14010bb145272cababef1
while True: try: a = int(input()) if a % 2 != 0: print(0, 0) else: print(a // 4 + (a % 4 == 2), a // 2) except: break
相关推荐