hiho week 204 register

Ended

Participants:153

Verdict:Accepted
Score:100 / 100
Submitted:2018-05-27 15:56:25

Lang:G++

Edit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#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);
        }
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX