题目
做这道题提交了将近10次,因为这道题没有给测试数据,平时太依赖测试数据了,每次过了样例就提交了,这道题思路一开始就错了,花了近两个小时才反应过来。以后写完代码,先用5分钟手算数据给程序挑刺。
#include <iostream>
#include <cmath>
#include <iomanip>
#include <vector>
#include <map>
#include <cstring>
#include <algorithm>
using namespace std;
string mat[50];
int N, M;
int Count(int row_B, int row_R