Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
6520 18级蔡越同 2021北京队选拔模拟赛1-B C++ 解答错误 20 0 MS 252 KB 288 2021-04-03 10:36:11

Tests(2/10):


#include <bits/stdc++.h> #define int long long using namespace std; int n,ans,mod,lst[20]; int a[14]={0,1,0,0,2,14,90,646,5242,47622,479306,5296790,63779034,831283558}; signed main(){ while(scanf("%lld%lld",&n,&mod)!=EOF){ cout<<a[n]%mod<<endl; } return 0; }


测评信息: