#include #define FOR(i,a,b) for(int i=(a);i<(int)(b);i++) #define REP(i,b) FOR(i,0,b) #define ALL(c) c.begin(),c.end() #define PB push_back #define TT second.second #define SS second.first #define FF first using namespace std; typedef long double ld; typedef long long LL; typedef int ut; typedef vector VI; typedef pair pr; typedef pair ppr; typedef vector Vpr; typedef priority_queue > PQ; const int INF=1<<30; const int BITSIZE=1<<12; const int SIZE=10+2*1e4; LL DP[101][101][5][400]; LL solve(int a,int b,int n,LL sum){ if(n==0) return sum==0; if(n*b> x; LL sum=x*4; LL answer=0; REP(i,101) REP(j,i){ FOR(k,1,5+1) FOR(l,1,6-k+1){ answer+=nCr(6,k)*nCr(6-k,l)*solve(j+1,i-1,6-k-l,sum-i*(k-1)-j*(l-1)); } } if(sum%4==0) answer++; cout << answer << endl; return 0; }