#include<iostream>
#include<cstdio>
#define mod 1000000007
using namespace std;
inline int read(){
int x=0,f=1;char ch=getchar();
while(ch<'0'||ch>'9'){if(ch=='-')f=-1;ch=getchar();}
while(ch>='0'&&ch<='9'){x=x*10+ch-'0';ch=getchar();}
return x*f;
}
int k,a[6];
long long f[16][16][16][16][16][6];
bool pd[16][16][16][16][16][6];
long long dp(int a,int b,int c,int d,int e,int k){
long long t=0;
if(pd[a][b][c][d][e][k])return f[a][b][c]......
阅读全文