#include #include #include using namespace std; #define INF 0x3f3f3f3f #define MAXN 21 int pool[MAXN][MAXN][MAXN]; int w(int a,int b,int c) { if(a<=0||b<=0||c<=0) return pool[0][0][0]; else if(a>20||b>20||c>20) return w(20,20,20); if(pool[a][b][c]!=INF) return pool[a][b][c]; if(a