QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#525102#7123. Robot Contestkimmoqt#15 198ms4136kbC++202.1kb2024-08-20 12:55:422024-08-20 12:55:43

Judging History

你现在查看的是最新测评结果

  • [2024-08-20 12:55:43]
  • 评测
  • 测评结果:15
  • 用时:198ms
  • 内存:4136kb
  • [2024-08-20 12:55:42]
  • 提交

answer

#include "robot.h"
#include <bits/stdc++.h>
using namespace std;

const string S="WSEN";

void program_pulibot() {
        for(int a=-2;a<3;a++) { // current
                for(int b=-2;b<3;b++) { // west 
                        for(int c=-2;c<3;c++) { // south
                                for(int d=-2;d<3;d++) { // east
                                        for(int e=-2;e<3;e++) { // north
                                                vector<int> v={b,c,d,e};
                                                if(v[1]==-2 && v[2]==-2) {
                                                        set_instruction({a,b,c,d,e},1,'T');
                                                        continue;
                                                }

                                                bool fnd=0;
                                                for(int k=0;k<4;k++) {
                                                        if(v[k]==0) {
                                                                fnd=1;
                                                                set_instruction({a,b,c,d,e},1,S[k]);
                                                                break;
                                                        }
                                                }

                                                if(!fnd) {
                                                        int lst=-1;
                                                        for(int k=0;k<4;k++) {
                                                                if(v[k]==1) {
                                                                        lst=k;
                                                                }
                                                        }
                                                        if(lst!=-1)
                                                                set_instruction({a,b,c,d,e},2,S[lst]);
                                                }
                                        }
                                }
                        }
                }
        }
}

详细

Subtask #1:

score: 6
Accepted

Test #1:

score: 6
Accepted
time: 189ms
memory: 3860kb

input:

4 8
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
t

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
130
130
161
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

ok 

Test #2:

score: 6
Accepted
time: 193ms
memory: 3840kb

input:

12 7
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
t

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
130
130
161
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

ok 

Test #3:

score: 6
Accepted
time: 194ms
memory: 3784kb

input:

15 15
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
130
130
161
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

ok 

Test #4:

score: 6
Accepted
time: 188ms
memory: 3920kb

input:

2 2
0 0
0 0
t

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
130
130
161
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

ok 

Test #5:

score: 6
Accepted
time: 182ms
memory: 3788kb

input:

2 3
0 0 0
0 0 0
t

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
130
130
161
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

ok 

Test #6:

score: 6
Accepted
time: 185ms
memory: 4136kb

input:

2 4
0 0 0 0
0 0 0 0
t

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
130
130
161
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

ok 

Test #7:

score: 6
Accepted
time: 189ms
memory: 3868kb

input:

2 10
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
t

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
130
130
161
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

ok 

Test #8:

score: 6
Accepted
time: 192ms
memory: 4056kb

input:

2 15
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
t

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
130
130
161
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

ok 

Subtask #2:

score: 0
Wrong Answer

Test #9:

score: 5
Acceptable Answer
time: 190ms
memory: 3768kb

input:

2 15
0 1 0 0 0 1 0 0 0 1 0 1 0 0 0
0 0 0 1 0 0 0 1 0 0 0 0 0 1 0
t

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
130
130
161
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

points 0.50

Test #10:

score: 10
Accepted
time: 197ms
memory: 3924kb

input:

2 10
0 1 1 1 1 0 0 0 0 0
0 0 0 0 0 0 1 1 1 0
t

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
130
130
161
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

ok 

Test #11:

score: 0
Wrong Answer
time: 196ms
memory: 3860kb

input:

2 15
0 0 1 0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 1 1 1 1 0 1 0 0 1 1 0
t

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
130
130
161
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

wrong answer Not a path

Subtask #3:

score: 9
Acceptable Answer

Test #28:

score: 9
Acceptable Answer
time: 185ms
memory: 3772kb

input:

15 15
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 1 1 0 1 1 1 1 1 1 1 0 1 1 0
1 0 1 1 0 0 0 0 0 0 0 1 0 1 0
0 0 0 0 1 1 0 1 1 0 1 1 0 1 0
1 0 1 0 1 0 0 1 0 0 0 0 0 0 0
0 0 1 0 0 0 1 0 1 1 0 1 0 1 0
1 0 1 0 1 0 1 0 0 0 1 0 1 0 1
0 0 0 1 0 1 0 0 1 0 0 0 0 0 0
0 1 1 1 0 0 0 1 0 0 1 1 1 1 0
0 1 0 0 0 1 1 0 1 0 1 0 ...

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
130
130
161
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

points 0.50

Test #29:

score: 18
Accepted
time: 193ms
memory: 4124kb

input:

15 15
0 0 0 0 0 0 0 0 0 1 1 1 1 1 1
1 1 1 1 1 1 1 1 0 0 0 0 0 1 1
1 1 1 1 1 1 1 1 1 1 1 1 0 1 1
1 1 1 1 1 1 1 1 1 1 1 1 0 1 1
1 1 1 1 1 1 1 1 1 1 1 1 0 1 1
1 1 1 1 1 1 1 1 1 1 1 0 0 1 1
1 1 1 1 1 1 1 1 1 1 1 0 1 1 1
1 1 1 1 1 1 1 1 1 1 1 0 1 1 1
1 1 1 1 1 1 1 1 1 1 0 0 1 1 1
1 1 1 1 1 1 1 1 1 1 0 1 ...

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
130
130
161
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

ok 

Test #30:

score: 18
Accepted
time: 194ms
memory: 3792kb

input:

15 15
0 0 0 0 1 1 1 1 1 1 1 1 1 1 1
1 1 1 0 1 1 1 1 1 1 1 1 1 1 1
1 1 1 0 1 1 1 1 1 1 1 1 1 1 1
1 0 0 0 1 1 1 1 1 1 1 1 1 1 1
1 0 1 1 1 1 1 1 1 1 1 1 1 1 1
1 0 1 1 1 1 1 1 1 1 1 1 1 1 1
1 0 1 1 1 1 1 1 1 1 1 1 1 1 1
1 0 1 1 1 1 1 1 1 1 1 1 1 1 1
1 0 0 0 0 1 1 1 1 1 1 1 1 1 1
1 1 1 1 0 1 1 1 1 1 1 1 ...

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
130
130
161
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

ok 

Test #31:

score: 9
Acceptable Answer
time: 189ms
memory: 4128kb

input:

15 15
0 0 0 0 0 0 0 0 0 0 0 0 0 1 1
1 0 1 0 1 1 0 1 1 0 1 1 0 0 1
0 1 0 0 0 1 0 0 1 0 1 0 1 0 0
0 0 1 0 1 0 1 1 0 1 0 0 1 0 1
1 0 0 1 0 0 1 0 0 0 0 1 0 0 0
0 1 0 0 0 1 0 1 1 0 1 0 0 1 1
0 0 0 1 0 0 0 0 0 0 0 1 0 0 0
1 0 1 0 1 0 1 1 0 1 0 0 0 1 0
1 0 1 0 0 0 1 0 0 1 0 1 0 0 1
0 0 0 1 1 1 0 1 0 0 1 0 ...

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
130
130
161
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

points 0.50

Test #32:

score: 9
Acceptable Answer
time: 185ms
memory: 3864kb

input:

15 15
0 0 0 0 1 0 0 0 0 1 0 0 0 0 0
0 1 0 1 0 1 0 1 0 0 0 1 1 0 1
0 0 1 0 0 1 1 0 1 0 1 1 0 1 0
0 1 1 0 1 0 0 0 0 0 1 0 0 0 0
0 0 0 0 0 0 1 0 1 0 0 0 1 1 1
0 1 0 1 1 0 0 1 0 0 1 0 0 0 0
1 0 0 0 1 0 1 0 1 0 1 1 0 1 0
1 1 0 1 1 1 0 0 0 0 0 0 1 0 1
1 1 0 0 1 0 1 1 1 0 1 1 0 0 0
1 0 0 1 0 0 0 0 1 0 0 0 ...

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
130
130
161
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

points 0.50

Test #33:

score: 9
Acceptable Answer
time: 189ms
memory: 3844kb

input:

15 15
0 0 0 0 0 1 1 0 1 0 1 0 1 0 1
0 1 1 0 1 0 0 0 0 0 0 0 0 0 0
0 0 1 0 0 0 1 1 1 1 1 1 1 1 1
0 1 1 0 1 0 0 0 0 0 0 0 0 0 0
0 1 0 0 1 0 1 0 1 0 1 0 1 0 1
1 0 0 1 0 0 0 1 0 1 0 0 1 1 0
0 1 1 0 0 1 0 0 0 0 1 1 0 0 0
0 1 0 0 1 0 0 1 0 1 0 1 1 0 1
0 0 0 1 0 1 1 1 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0 1 1 0 1 ...

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
130
130
161
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

points 0.50

Test #34:

score: 9
Acceptable Answer
time: 188ms
memory: 3864kb

input:

15 15
0 1 0 0 1 0 0 1 0 1 0 0 0 1 0
0 1 0 1 1 0 1 0 0 0 0 1 0 0 0
0 0 0 0 0 0 0 0 1 1 0 0 1 0 1
0 1 1 0 1 1 1 0 0 0 1 1 0 0 0
1 0 0 0 0 0 0 1 1 1 0 0 1 0 1
0 1 0 1 1 0 1 0 0 1 0 1 0 1 1
0 0 0 0 0 1 0 0 1 0 0 1 0 0 1
0 1 1 0 1 0 1 0 0 0 1 0 0 1 0
1 0 1 0 1 0 0 0 1 1 0 1 0 0 0
1 0 0 0 0 0 1 0 0 1 0 1 ...

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
130
130
161
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

points 0.50

Test #35:

score: 9
Acceptable Answer
time: 196ms
memory: 4080kb

input:

15 15
0 1 0 0 0 1 0 1 0 0 1 1 0 0 1
0 0 0 1 1 0 0 0 0 1 0 0 1 0 0
1 0 1 0 0 1 0 1 0 0 0 1 1 0 1
0 0 1 1 0 0 0 1 0 1 0 0 0 0 0
1 0 0 0 0 1 0 1 0 0 1 0 1 0 1
1 0 1 0 1 0 0 1 0 1 0 0 1 1 0
0 0 1 0 0 1 0 0 1 0 1 0 0 0 0
1 0 1 0 1 0 0 1 0 0 0 0 1 0 1
0 1 0 0 0 1 1 0 0 1 0 1 0 1 0
0 0 0 1 0 1 0 0 1 0 0 0 ...

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
130
130
161
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

points 0.50

Test #36:

score: 9
Acceptable Answer
time: 192ms
memory: 3776kb

input:

15 15
0 0 0 1 0 0 0 1 0 0 1 0 0 1 0
0 1 1 0 0 1 0 1 0 1 0 1 0 1 0
0 1 0 1 1 0 0 0 0 0 0 0 0 0 0
0 0 0 1 0 0 1 1 1 0 1 0 1 1 0
0 1 0 1 0 1 0 0 0 0 1 1 0 1 1
0 1 0 1 0 0 1 1 1 0 0 0 0 0 0
0 0 1 0 0 1 1 0 1 0 1 1 1 0 1
0 1 0 0 1 1 0 0 0 0 0 0 0 1 0
0 1 1 0 0 0 1 0 1 0 1 0 1 0 0
0 0 0 0 1 0 0 1 0 0 0 1 ...

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
130
130
161
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

points 0.50

Test #37:

score: 9
Acceptable Answer
time: 193ms
memory: 3896kb

input:

15 15
0 1 0 0 1 0 1 0 0 0 1 0 0 0 1
0 0 1 0 1 0 0 0 1 1 0 1 0 1 0
1 0 0 0 0 1 1 0 0 0 0 0 0 0 0
1 0 1 1 0 0 0 0 1 1 0 1 0 1 0
0 0 0 1 1 0 1 0 1 1 1 0 1 0 0
1 0 1 0 0 0 1 0 0 1 0 0 0 0 1
0 0 1 1 1 0 1 0 1 0 1 1 1 0 1
1 0 0 0 1 0 1 0 1 0 0 0 0 0 0
0 0 1 1 1 0 1 1 1 1 0 1 0 1 0
1 0 0 0 0 1 0 0 1 0 1 0 ...

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
130
130
161
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

points 0.50

Test #38:

score: 9
Acceptable Answer
time: 185ms
memory: 3924kb

input:

15 15
0 0 0 1 0 0 0 0 0 0 1 0 0 1 0
0 1 1 0 1 1 0 1 0 1 0 0 1 0 0
0 0 0 0 0 1 0 1 0 0 1 0 0 1 0
1 0 1 1 0 0 1 0 1 0 0 1 0 1 0
0 0 0 0 1 0 0 0 1 0 1 0 0 0 0
0 1 0 1 0 0 1 0 0 0 0 0 1 0 1
1 0 0 0 1 1 0 0 1 0 1 0 1 0 0
1 1 0 1 0 0 1 1 0 0 1 0 0 1 0
1 0 0 1 0 1 0 0 1 0 1 0 1 0 1
0 0 1 0 0 0 1 0 0 1 0 0 ...

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
130
130
161
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

points 0.50

Test #39:

score: 9
Acceptable Answer
time: 198ms
memory: 3772kb

input:

15 15
0 0 1 0 0 0 0 0 0 0 1 0 1 0 0
1 0 0 0 1 1 0 1 1 0 1 0 1 0 1
1 0 1 1 0 0 1 0 0 1 0 0 1 0 0
0 0 0 0 0 1 0 1 0 1 0 1 1 0 1
0 1 0 1 1 0 0 0 0 1 0 1 0 0 0
0 0 1 1 1 0 1 0 1 0 0 1 0 1 0
0 1 0 1 0 0 0 1 1 1 0 0 0 0 1
0 0 0 0 0 1 0 0 1 0 0 1 1 0 0
0 1 1 0 1 1 1 0 0 1 0 0 0 1 0
0 1 0 0 0 1 1 1 0 1 0 1 ...

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
130
130
161
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

points 0.50

Subtask #4:

score: 0
Wrong Answer

Test #40:

score: 0
Wrong Answer
time: 198ms
memory: 3900kb

input:

15 15
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 1 0 1 1 0 0 0 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 1 0 1 1 0 0 0 0 0 0 0 0
0 0 0 1 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 1 0 1 1 0 0 0 0 0 0
0 0 0 0 0 1 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 1 0 1 1 0 0 0 0
0 0 0 0 0 0 0 1 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 1 0 1 ...

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
130
130
161
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

wrong answer Not a path

Subtask #5:

score: 0
Wrong Answer

Test #64:

score: 0
Wrong Answer
time: 191ms
memory: 4136kb

input:

15 15
0 0 0 0 1 0 0 1 0 0 0 0 0 0 0
1 1 0 0 0 0 0 0 0 1 1 0 1 1 0
0 0 1 1 1 1 1 1 1 0 0 1 0 0 0
0 0 0 0 0 0 0 0 0 0 0 1 0 0 1
0 1 1 1 1 1 1 1 1 0 0 1 0 0 0
0 1 0 0 0 0 0 0 1 1 0 0 1 0 0
0 0 1 0 0 1 0 0 0 0 0 0 0 1 0
0 0 1 0 0 1 1 0 0 1 0 0 0 1 0
0 1 0 0 1 0 0 1 1 0 1 1 1 0 0
0 1 0 0 0 0 0 0 1 0 0 0 ...

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
130
130
161
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
162
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

wrong answer Unexpected state: [1, -2, -1, 2, -2]