摘要: #include <iostream> using namespace std; int n,a,b,p; int f(int x){ if(x <= 2){ return 1; } return (a*f(x-1)+b*f(x-2))%p; } int main() { cin>>n>>a>>b> 阅读全文
posted @ 2022-03-16 15:27 Tricia11 阅读(9) 评论(0) 推荐(0)