hiho week 320 register

Ended

Participants:37

Verdict:Accepted
Score:100 / 100
Submitted:2020-08-15 22:35:57

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 <iostream>
#include <string>
using namespace std; 
bool used[55][55][55][55];
int que[7000000][5];
int p,q,n,m;
int tu[55][55];
int* now;
int dx[4] = {-1,0,0,1};
int dy[4] = {0,-1,1,0};
int main(int argc, char** argv) {
    cin>>n>>m;
    string s;
    for(int i=0;i<n;i++)
    {
        cin>>s;
        for(int j=0;j<m;j++)
        {
            if(s[j] == '0')
                tu[i+1][j+1] = 1;
            else
                tu[i+1][j+1] = 0;
        }
    }
    que[q][0] = 1;
    que[q][1] = 1;
    que[q][2] = n;
    que[q][3] = m;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX