| 比赛 | 26暑假集训模拟赛1 | 评测结果 | AAWWWWWWWW |
|---|---|---|---|
| 题目名称 | 圆 | 最终得分 | 20 |
| 用户昵称 | 郑霁桓 | 运行时间 | 0.025 s |
| 代码语言 | C++ | 内存使用 | 3.71 MiB |
| 提交时间 | 2026-06-29 11:38:15 | ||
#include<bits/stdc++.h>
using namespace std;
long long n,M,s[15]={0,0,0,6,23,103,513,2761,15767,94359,586590,3763290,24792705,167078577};
int main(){
freopen("great.in","r",stdin);
freopen("great.out","w",stdout);
ios::sync_with_stdio(false);
cin.tie(0),cout.tie(0);
cin>>n>>M;
cout<<s[n]%M;;
return 0;
}