D题如果你wa了#2和#21注意全1的情况,此时计划数p为0,而不是输出-1附上本人代码(码风不好见谅) #include<bits/stdc++.h> using namespace std; #define IOS ios::sync_with_stdio(false),cin.tie(0),cout.tie(0); #define N 10 #define ll long long #define INF 0x7fffffff #define endl '\n' int n,m,q; int a[N][N]; int plan[N][N][N]; int tmp[N][N];...