题解 | #杨辉三角的变形#
杨辉三角的变形
https://www.nowcoder.com/practice/8ef655edf42d4e08b44be4d777edbf43
while 1: try: n = int(input()) if n >= 3: if n % 2 == 1: print(2) else: if n % 4 == 0: print(3) else: print(4) else: print(-1) except: break#HJ53杨辉三角的变形#
杨辉三角的变形
https://www.nowcoder.com/practice/8ef655edf42d4e08b44be4d777edbf43
while 1: try: n = int(input()) if n >= 3: if n % 2 == 1: print(2) else: if n % 4 == 0: print(3) else: print(4) else: print(-1) except: break#HJ53杨辉三角的变形#
相关推荐