题解 | #杨辉三角的变形#
杨辉三角的变形
https://www.nowcoder.com/practice/8ef655edf42d4e08b44be4d777edbf43
s = int(input())
if s <= 2:
print(-1)
elif (s-2) % 4 == 1:
print(2)
elif (s-2) % 4 == 2:
print(3)
elif (s-2) % 4 == 3:
print(2)
elif (s-2) % 4 == 0:
print(4)
查看11道真题和解析