c#include <bits/stdc++.h> using namespace std; int w(int, int, int); bool isVisit[51][51][51]; int dp[51][51][51
#include <bits/stdc++.h> using namespace std; int w(int, int, int); bool isVisit[51][51][51]; int dp[51][51][51