题解 | 杨辉三角的变形
杨辉三角的变形
https://www.nowcoder.com/practice/8ef655edf42d4e08b44be4d777edbf43
n = int(input()) std = [2, 3, 2, 4] if n < 3: print(-1) else: res = std[(n - 2) % 4 - 1] print(res)
杨辉三角的变形
https://www.nowcoder.com/practice/8ef655edf42d4e08b44be4d777edbf43
n = int(input()) std = [2, 3, 2, 4] if n < 3: print(-1) else: res = std[(n - 2) % 4 - 1] print(res)
相关推荐