大家注意了输入格式严格按这种,不然然你永远是16,6% #include<cstdio> #include<iostream> #include<cstring> #include<algorithm> using namespace std; typedef long long LL; const LL maxn=20; LL a[maxn][maxn]; LL dp[maxn][maxn][maxn][maxn]; LL n; int main(){ cin>>n; LL x,y,w; memset(dp,0,...