Lang:G++
Edit12345678910111213141516171819202122232425262728293031#include <iostream>#include <cstdio>#include<vector>#include<unordered_map>#include <limits.h>#include<string>#include<unordered_set>#include<algorithm>#include<memory.h>using namespace std;typedef long long LL;;int visited[101][101][2];void dfs(vector<string>&mat, int i, int j, int k, int dir, int count,int n, int m){if(i < 0 || j < 0 || i >= n || j >= m ){return ;}if(dir != 0){if(dir == 1){k = 1;}else if(dir == 2){if(mat[i][j] == '\\'){k = 1;}else {k = 0;}}else if(dir == 3){k = 0;}