Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
6534 | 18级蔡越同 | 2021北京队选拔模拟赛1-B | C++ | 解答错误 | 20 | 0 MS | 252 KB | 321 | 2021-04-03 11:35:01 |
#include <bits/stdc++.h> #define int long long using namespace std; int n,ans,mod,num[1010],cnt; int a[16]={0,1,0,0,2,14,90,646,5242,47622,479306,5296790,63779034,831283558,11661506218}; bool f[1010]; signed main(){ while(scanf("%lld%lld",&n,&mod)!=EOF){ cout<<a[n]%mod<<endl; } return 0; }