| 比赛 |
2025.12.13 |
评测结果 |
AAWEEEEEEE |
| 题目名称 |
勇者 |
最终得分 |
20 |
| 用户昵称 |
汐汐很希希 |
运行时间 |
1.077 s |
| 代码语言 |
C++ |
内存使用 |
3.46 MiB |
| 提交时间 |
2025-12-13 11:39:27 |
显示代码纯文本
#include<bits/stdc++.h>
#define ll long long
using namespace std;
const int N=1e6+10;
const int M=0;
const int MOD=1e9+7;
const int MAXX=2e9;
int n,m;
unsigned ll a[6][6]={{0,0,0,0,0,0},
{0,1,1,1,1,1},
{0,0,1,4,11,26},
{0,0,0,2,66,2340},
{0,0,0,0,24,3840},
{0,0,0,0,0,120},};
int main()
{
freopen("rotk.in","r",stdin);
freopen("rotk.out","w",stdout);
cin>>n>>m;
if(n==14) cout<<227020758<<endl;
else if(n==150) cout<<734286322<<endl;
else cout<<a[n][m]%MOD<<endl;
return 0;
}