QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#525114#7123. Robot Contestkimmoqt#16 201ms4140kbC++202.1kb2024-08-20 13:04:462024-08-20 13:04:46

Judging History

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

  • [2024-08-20 13:04:46]
  • 评测
  • 测评结果:16
  • 用时:201ms
  • 内存:4140kb
  • [2024-08-20 13:04:46]
  • 提交

answer

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

const string S="ESWN";

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={d,c,b,e};
                                                if(v[0]==-2 && v[1]==-2) {
                                                        set_instruction({a,b,c,d,e},1,'T');
                                                        continue;
                                                }

                                                bool fnd=0;
                                                for(int k=0;k<2;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]);
                                                }
                                        }
                                }
                        }
                }
        }
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 6
Accepted

Test #1:

score: 6
Accepted
time: 198ms
memory: 3924kb

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
0
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
130
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
162
0
0
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: 185ms
memory: 3916kb

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
0
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
130
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
162
0
0
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: 3896kb

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
0
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
130
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
162
0
0
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: 189ms
memory: 3932kb

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
0
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
130
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
162
0
0
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: 189ms
memory: 3840kb

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
0
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
130
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
162
0
0
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: 193ms
memory: 3864kb

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
0
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
130
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
162
0
0
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: 198ms
memory: 3860kb

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
0
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
130
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
162
0
0
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: 195ms
memory: 3920kb

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
0
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
130
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
162
0
0
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: 0
Wrong Answer
time: 181ms
memory: 3900kb

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
0
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
130
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
162
0
0
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, 2, -1, -2]

Subtask #3:

score: 0
Wrong Answer

Test #28:

score: 0
Wrong Answer
time: 193ms
memory: 3920kb

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
0
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
130
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
162
0
0
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, 2, 2, -2]

Subtask #4:

score: 10
Acceptable Answer

Test #40:

score: 10
Acceptable Answer
time: 193ms
memory: 3920kb

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
0
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
130
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
162
0
0
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 #41:

score: 10
Acceptable Answer
time: 189ms
memory: 3932kb

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 1 0
0 0 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 1 0
0 0 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 1 0
0 0 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 1 0
0 0 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 ...

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
0
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
130
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
162
0
0
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 #42:

score: 10
Acceptable Answer
time: 188ms
memory: 3780kb

input:

15 15
0 0 0 0 0 0 0 0 0 0 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 0 1 0 0 0 0 0
0 0 0 1 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 0
0 0 0 0 0 0 0 1 0 0 0 0 0 1 0
0 0 0 1 0 0 0 0 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0 0 1 0 0 1 0 0
0 0 0 0 1 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
0
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
130
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
162
0
0
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 #43:

score: 10
Acceptable Answer
time: 185ms
memory: 4120kb

input:

15 15
0 0 0 0 0 0 1 0 0 0 0 1 0 0 0
0 0 1 0 0 0 0 0 0 0 0 0 0 1 0
0 0 0 0 1 0 0 0 0 0 1 0 0 0 0
0 0 0 0 0 0 0 1 0 1 0 0 0 0 1
1 0 0 0 0 0 1 0 0 0 0 1 1 1 0
0 1 0 0 0 0 0 0 0 1 0 1 0 1 0
0 0 0 0 0 0 0 0 1 1 0 0 0 0 1
0 0 0 0 0 0 0 0 1 0 0 0 0 0 0
1 0 0 1 0 0 0 0 0 0 1 0 0 1 0
1 0 0 0 0 0 0 1 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
0
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
130
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
162
0
0
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 #44:

score: 10
Acceptable Answer
time: 197ms
memory: 4136kb

input:

15 15
0 0 0 0 1 0 0 0 0 0 1 1 0 1 0
0 0 1 0 0 0 0 0 1 0 0 0 0 0 1
1 0 1 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 1 0
0 0 0 1 0 0 0 0 0 0 1 0 1 0 0
0 1 0 0 0 1 0 0 0 0 0 1 1 0 0
1 1 1 0 0 1 0 1 0 0 0 1 0 0 0
0 0 1 0 0 0 0 1 0 0 0 0 1 0 0
0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 1 0 0 0 1 1 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
0
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
130
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
162
0
0
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 #45:

score: 10
Acceptable Answer
time: 193ms
memory: 3836kb

input:

15 15
0 1 1 1 0 1 1 1 0 1 1 0 0 1 0
0 0 0 0 0 0 0 1 1 0 1 0 0 0 0
0 0 1 1 1 0 0 1 0 0 0 1 0 1 1
0 0 0 0 0 1 1 0 0 0 0 0 0 0 1
0 0 0 0 0 0 1 1 0 0 0 1 1 0 0
1 0 0 0 0 0 1 1 0 0 0 1 1 0 0
0 0 0 0 0 0 0 0 0 0 1 0 1 1 1
1 1 1 0 1 0 0 0 0 1 0 0 1 0 0
1 0 0 0 0 0 1 0 0 1 0 0 1 1 0
0 0 1 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
0
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
130
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
162
0
0
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 #46:

score: 10
Acceptable Answer
time: 201ms
memory: 3776kb

input:

15 15
0 0 0 1 0 1 1 0 0 0 0 1 1 0 0
0 0 0 0 0 0 1 0 0 0 0 1 1 0 0
0 0 0 0 0 0 0 0 0 1 0 0 0 0 0
0 0 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 0 0 0 0 0 0 0 0 1 0 0 0 1 0
1 1 0 0 0 0 0 0 0 0 0 1 0 1 0
0 1 0 0 0 0 0 0 0 0 0 1 0 1 1
0 0 0 1 0 0 0 0 0 0 1 1 0 0 0
0 1 0 1 0 0 1 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
0
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
130
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
162
0
0
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 #47:

score: 10
Acceptable Answer
time: 192ms
memory: 4120kb

input:

15 15
0 0 1 0 0 0 1 1 1 1 0 0 0 0 1
0 0 1 1 1 0 0 0 0 0 1 1 1 0 1
0 0 1 1 1 0 0 0 0 1 1 1 0 1 0
0 0 1 1 1 0 0 0 0 1 0 0 0 1 0
1 0 0 0 0 0 1 0 0 0 0 0 1 1 0
0 0 0 1 0 0 0 1 1 0 0 1 0 0 1
0 0 1 0 0 0 0 0 1 0 0 0 0 0 0
1 0 0 0 0 1 0 0 1 0 1 0 1 0 1
1 0 0 0 1 1 1 0 0 0 1 1 1 1 0
0 0 0 0 0 0 1 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
0
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
130
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
162
0
0
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 #48:

score: 10
Acceptable Answer
time: 189ms
memory: 3836kb

input:

15 15
0 0 0 0 0 0 0 0 0 0 0 1 0 1 0
0 0 1 1 0 0 0 0 0 1 0 0 0 0 1
0 0 0 1 1 0 1 0 1 1 0 1 1 0 0
0 0 0 1 1 1 1 0 0 1 0 0 0 0 1
0 0 0 0 0 0 0 1 1 1 0 0 1 0 1
0 0 1 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
0 0 0 1 0 0 1 1 0 1 1 0 0 1 0
0 0 0 0 0 1 0 1 0 1 0 0 0 0 0
1 1 1 0 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
0
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
130
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
162
0
0
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 #49:

score: 10
Acceptable Answer
time: 198ms
memory: 3864kb

input:

15 15
0 1 0 0 1 0 0 0 1 1 0 0 0 0 0
0 0 1 1 0 1 1 0 1 0 0 0 1 0 0
0 0 0 0 0 1 0 1 1 0 1 0 0 0 1
0 0 0 0 0 1 0 0 0 0 0 0 1 1 0
1 0 0 1 0 0 0 0 1 1 0 1 0 0 0
0 0 0 0 1 1 0 1 0 1 0 0 0 0 0
0 0 1 0 0 0 0 0 1 1 0 0 1 1 1
0 1 1 0 0 0 1 1 1 0 0 0 0 0 0
1 1 1 1 1 0 0 0 1 1 0 0 0 0 0
0 1 0 0 1 0 0 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
0
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
130
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
162
0
0
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 #50:

score: 10
Acceptable Answer
time: 188ms
memory: 3836kb

input:

15 15
0 0 0 0 0 1 1 0 1 1 1 0 1 0 1
1 0 1 0 0 0 0 1 1 0 1 1 1 1 1
0 0 1 1 0 1 0 0 0 1 0 1 1 1 1
0 1 0 0 1 0 0 1 1 0 1 0 1 1 0
1 0 1 0 1 0 0 0 0 1 0 1 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 1 1 0
1 1 0 0 1 1 0 1 0 0 0 0 0 0 0
1 1 1 0 0 0 1 1 1 1 0 1 1 1 0
1 0 1 0 0 1 0 0 0 0 0 1 0 1 1
1 1 0 0 1 0 0 1 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
0
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
130
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
162
0
0
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 #51:

score: 10
Acceptable Answer
time: 184ms
memory: 3924kb

input:

15 15
0 0 0 1 0 0 1 1 0 1 0 1 1 0 1
0 0 0 0 1 0 0 1 1 1 0 1 1 0 0
1 0 0 0 0 1 1 0 0 0 1 0 0 1 0
0 0 0 0 0 1 0 0 0 1 0 1 1 1 0
1 0 1 1 0 0 0 0 1 0 0 0 0 1 1
1 1 0 1 0 0 1 1 1 1 1 1 0 1 0
1 0 1 1 1 0 0 1 0 0 1 0 0 1 0
0 1 0 1 1 0 1 0 1 1 1 0 1 1 1
1 0 0 1 1 0 1 1 0 1 0 0 0 1 0
0 1 1 0 1 0 0 0 0 1 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
0
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
130
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
162
0
0
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 #52:

score: 10
Acceptable Answer
time: 191ms
memory: 3920kb

input:

15 15
0 0 0 0 0 0 1 1 0 0 1 1 1 1 1
1 1 1 1 0 0 0 0 1 1 1 0 1 0 1
1 0 1 0 0 0 0 0 0 1 0 0 0 1 1
1 1 0 1 0 0 1 0 0 0 0 0 1 1 1
1 1 0 1 1 0 1 1 0 0 0 0 0 1 1
0 0 1 1 0 0 1 0 1 0 0 1 0 1 0
0 0 0 1 0 0 1 0 1 0 0 1 1 1 1
0 1 1 1 0 0 1 0 1 0 1 0 0 1 1
1 0 0 1 0 0 1 0 1 0 0 0 1 0 1
1 1 0 0 0 0 1 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
0
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
130
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
162
0
0
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 #53:

score: 10
Acceptable Answer
time: 187ms
memory: 4036kb

input:

15 15
0 0 1 1 1 1 0 1 0 1 0 0 0 0 0
1 0 0 0 0 0 1 1 1 0 1 0 1 1 1
0 0 0 0 0 0 1 0 1 0 0 1 0 1 1
0 1 0 0 0 0 0 1 1 0 0 1 0 1 1
0 1 0 0 1 0 0 0 1 0 1 0 0 0 1
1 1 1 0 1 1 1 0 1 0 1 0 0 1 0
1 0 1 0 0 0 0 0 1 1 1 0 0 0 1
0 1 1 0 1 1 0 0 1 0 0 1 0 1 1
0 0 1 1 1 1 1 0 0 1 1 1 0 1 1
1 0 0 1 1 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
0
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
130
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
162
0
0
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 #54:

score: 10
Acceptable Answer
time: 197ms
memory: 4140kb

input:

15 15
0 0 1 0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 1 0 0 0 0 0 0 0 0 0 0
0 1 0 0 1 0 0 0 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 1 0 0 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 0 0 0 0 0 0 0 1 0 0
0 0 0 0 0 0 0 0 0 1 0 1 0 0 0
0 0 0 0 0 0 0 0 1 0 0 1 0 0 0
0 0 0 0 0 0 0 1 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
0
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
130
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
162
0
0
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 #55:

score: 10
Acceptable Answer
time: 181ms
memory: 3776kb

input:

15 15
0 0 1 0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 1 0 0 0 0 0 0 0 0 0 0 0
0 1 0 1 0 0 0 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 1 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 1 0 0 0 0 0 0 0 0
0 0 0 0 1 0 0 1 0 0 0 0 0 0 0
0 0 0 0 0 1 0 0 0 1 0 0 0 0 0
0 0 0 0 1 0 1 0 0 0 1 0 0 0 0
0 0 0 0 1 0 0 0 1 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
0
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
130
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
162
0
0
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 #56:

score: 10
Acceptable Answer
time: 189ms
memory: 3872kb

input:

15 15
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 0 0 0 0 0 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 0 0 0 0 0 0 0 0 0 0
0 0 1 0 0 1 0 0 0 0 0 1 0 0 0
0 0 0 0 1 0 0 0 0 0 1 0 1 0 0
0 0 0 0 0 0 0 0 0 1 0 0 0 0 0
0 0 0 0 1 0 1 0 1 0 0 0 0 0 0
0 0 0 0 1 0 0 1 0 0 0 0 0 0 0
0 0 0 0 0 1 0 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
0
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
130
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
162
0
0
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 #57:

score: 10
Acceptable Answer
time: 188ms
memory: 4060kb

input:

15 15
0 0 0 0 1 0 0 0 0 0 0 1 0 0 0
1 1 0 1 0 0 0 0 0 1 0 0 0 0 0
0 0 0 0 0 1 0 0 0 0 0 1 0 0 0
0 0 0 1 0 0 0 1 1 0 0 0 0 0 1
0 0 0 0 1 1 0 0 0 0 0 0 0 1 0
1 0 1 1 0 0 1 1 0 1 1 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 1 0 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 1 0 1 0 0
0 0 0 0 0 0 0 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
0
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
130
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
162
0
0
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 #58:

score: 10
Acceptable Answer
time: 197ms
memory: 3920kb

input:

15 15
0 0 0 0 0 1 0 0 0 0 0 0 0 0 0
1 0 0 1 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 1 0 0 0 0 0 0 0 0
1 1 0 0 0 1 0 0 0 0 0 0 0 0 0
0 0 0 1 0 0 1 0 0 1 0 1 1 0 0
0 0 0 0 0 0 1 0 1 0 1 0 0 0 0
1 0 1 0 0 0 1 0 1 0 0 0 0 0 1
0 0 0 0 0 1 0 0 0 0 1 0 0 0 0
0 0 0 0 0 0 0 0 1 0 0 1 0 0 0
0 0 0 0 0 1 0 1 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
0
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
130
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
162
0
0
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 #59:

score: 10
Acceptable Answer
time: 189ms
memory: 3904kb

input:

15 15
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 1 1 0 0 0 0 0 1 0 0 0 0 0
0 0 0 0 0 0 0 1 1 0 0 0 0 0 0
0 1 1 0 1 0 0 0 0 0 0 0 1 0 0
0 0 0 0 0 0 0 0 1 0 0 0 0 0 0
0 0 0 1 0 0 0 1 0 0 0 0 0 0 0
0 1 0 1 0 1 1 0 0 0 0 0 0 1 1
1 0 1 0 0 1 0 0 0 1 1 0 0 0 0
0 0 0 0 0 0 1 0 0 0 0 0 0 0 0
1 0 1 0 1 0 1 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
0
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
130
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
162
0
0
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 #60:

score: 10
Acceptable Answer
time: 193ms
memory: 3920kb

input:

15 15
0 1 0 0 0 0 0 0 0 0 1 0 0 0 0
0 0 0 1 0 0 0 1 0 0 0 0 0 1 0
0 1 0 1 0 0 1 0 0 0 0 1 0 0 0
1 0 0 1 0 1 0 1 0 0 1 0 0 1 0
0 0 0 1 0 0 0 0 0 1 1 0 0 1 0
0 1 0 1 0 0 0 1 0 0 0 0 0 1 0
0 1 0 0 0 0 1 1 0 0 0 0 0 0 1
0 0 0 1 0 1 0 0 0 0 1 0 0 0 0
0 1 1 0 0 0 0 0 0 0 0 1 0 0 0
0 0 0 0 0 1 0 1 1 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
0
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
130
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
162
0
0
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 #61:

score: 10
Acceptable Answer
time: 186ms
memory: 3844kb

input:

15 15
0 1 0 0 1 0 0 0 0 0 1 0 0 1 0
0 0 0 1 0 0 1 0 0 0 0 0 0 0 0
1 1 0 1 0 0 1 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 1 1 0 0 0 0 1 1
1 0 0 0 1 0 1 0 0 0 0 0 0 0 0
0 1 0 1 0 0 0 0 0 1 0 0 0 0 0
0 0 0 1 1 0 1 1 1 0 0 0 0 1 0
0 0 0 1 0 0 0 0 0 1 0 0 0 1 0
1 0 0 1 0 1 0 1 0 1 0 0 0 0 0
1 0 0 0 1 0 0 0 1 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
0
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
130
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
162
0
0
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 #62:

score: 10
Acceptable Answer
time: 194ms
memory: 4124kb

input:

15 15
0 0 1 1 1 0 1 0 0 1 0 0 1 0 0
1 0 0 0 1 0 0 0 0 1 1 1 0 0 1
0 0 1 0 0 0 0 0 1 0 0 0 0 0 0
0 1 0 0 0 1 0 0 0 0 1 0 0 0 1
1 0 1 0 1 0 0 0 1 1 0 0 0 1 0
0 0 0 1 1 0 0 0 1 0 0 0 0 0 0
0 1 0 0 1 0 0 1 0 1 0 0 0 0 0
0 1 0 1 0 0 0 0 0 1 0 0 0 0 0
0 0 0 0 0 1 1 0 1 0 0 0 0 0 0
0 0 1 0 0 1 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
0
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
130
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
162
0
0
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 #63:

score: 10
Acceptable Answer
time: 193ms
memory: 3900kb

input:

15 15
0 0 0 0 0 0 0 1 0 0 0 1 0 0 0
1 0 0 0 0 1 1 0 1 0 1 0 0 0 0
0 0 1 1 1 1 1 0 0 0 1 0 0 0 1
1 0 0 0 0 0 1 1 1 0 0 1 1 0 0
0 0 0 1 0 1 0 0 1 0 1 0 0 0 1
1 1 1 1 0 0 0 0 0 1 1 1 0 0 0
0 0 0 1 0 0 0 1 0 1 1 0 0 0 1
0 1 0 0 0 0 0 1 0 0 0 0 0 0 0
0 0 1 0 0 0 0 1 1 1 0 0 0 1 0
0 1 0 1 0 1 0 1 1 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
0
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
130
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
162
0
0
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 #5:

score: 0
Wrong Answer

Test #64:

score: 0
Wrong Answer
time: 194ms
memory: 3924kb

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
0
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
130
162
130
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
162
0
0
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]