题解 | #杨辉三角的变形#
杨辉三角的变形
https://www.nowcoder.com/practice/8ef655edf42d4e08b44be4d777edbf43
#include <iostream> using namespace std; int main() { int n[4] = {4,2,3,2}; int num; cin>>num; if(num<=2){ cout<<-1; }else{ int wz = (num-2)%4; cout<<n[wz]; } } // 64 位输出请用 printf("%lld")