#include #include #include #include #include #include #include #include using namespace std; typedef long long ll; typedef pair P; const int MN = 11; int main() { int r, c; cin >> r >> c; static double p[MN][MN]; static int s[MN][MN]; for (int i = 0; i < r; i++) { for (int j = 0; j < c; j++) { cin >> p[i][j]; p[i][j] /= 100.0; } } for (int i = 0; i < r; i++) { for (int j = 0; j < c; j++) { cin >> s[i][j]; s[i][j] = 4-s[i][j]; } } static double dp1[1<= 4) { ll |= (1<= 0; m--) { int u = 0; if (l & (1<= 4 || (ll & (1<