文章
1
粉丝
130
获赞
访问
7.6k
#include const int maxn = 10010; int dp[maxn]; int main(){ int n; scanf("%d", &n); dp[1] = 1; dp[2] = 2; for(int i = 3; i <= n; i++){ dp[i] = (dp[i - 1] + dp[i - 2]) % 999983; } printf("%d", dp[n]); return 0; }
登录后发布评论
暂无评论,来抢沙发