Lang:G++
Edit12345678910111213141516171819202122232425262728293031#include <cstdio>#include <iostream>#include <vector>#include <algorithm>#include <cstring>using namespace std;int dir[4][2] = {{1,1},{1,0},{0,1},{-1,1}};bool is_ok(int i, int j,int k){if (i + dir[k][0] >= 0 && i + dir[k][0] < 15 && j + dir[k][1] >= 0 && j + dir[k][1] < 15)return true;return false;}int main(){int t;cin >> t;vector<string>S;string str;while(t--){S.clear();for (int i = 0; i < 15; ++i) {cin>>str;S.push_back(str);}