QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#531259#7123. Robot Contestgreen_gold_dog#16 197ms6064kbC++20743b2024-08-24 19:34:592024-08-24 19:34:59

Judging History

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

  • [2024-08-24 19:34:59]
  • 评测
  • 测评结果:16
  • 用时:197ms
  • 内存:6064kb
  • [2024-08-24 19:34:59]
  • 提交

answer

#include "robot.h"
#include<bits/stdc++.h>

using namespace std;

typedef int ll;

void program_pulibot() {//W = (0, -1), S = (+1, 0), E = (0, +1), N = (-1, 0)
	for (ll i = -2; i < 2; i++) {
		for (ll w = -2; w < 2; w++) {
			for (ll s = -2; s < 2; s++) {
				for (ll e = -2; e < 2; e++) {
					for (ll n = -2; n < 2; n++) {
						if (e >= 0) {
							set_instruction(vector<ll>{i, w, s, e, n}, 1, 'E');
						} else {
							if (s >= 0) {
								set_instruction(vector<ll>{i, w, s, e, n}, 1, 'S');
							} else {
								if (e == -2 && s == -2) {
									set_instruction(vector<ll>{i, w, s, e, n}, 1, 'T');
								} else {
									set_instruction(vector<ll>{i, w, s, e, n}, 1, 'N');
								}
							}
						}
					}
				}
			}
		}
	}
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 6
Accepted

Test #1:

score: 6
Accepted
time: 197ms
memory: 3880kb

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
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
161
161
161
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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: 193ms
memory: 3752kb

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
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
161
161
161
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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: 191ms
memory: 5920kb

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
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
161
161
161
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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: 197ms
memory: 3872kb

input:

2 2
0 0
0 0
t

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
161
161
161
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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: 184ms
memory: 3832kb

input:

2 3
0 0 0
0 0 0
t

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
161
161
161
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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: 194ms
memory: 3768kb

input:

2 4
0 0 0 0
0 0 0 0
t

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
161
161
161
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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: 195ms
memory: 4012kb

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
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
161
161
161
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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: 193ms
memory: 6064kb

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
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
161
161
161
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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: 10
Accepted

Test #9:

score: 10
Accepted
time: 182ms
memory: 3756kb

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
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
161
161
161
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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 #10:

score: 10
Accepted
time: 192ms
memory: 3816kb

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
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
161
161
161
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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 #11:

score: 10
Accepted
time: 191ms
memory: 3760kb

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
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
161
161
161
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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 #12:

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

input:

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

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
161
161
161
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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 #13:

score: 10
Accepted
time: 193ms
memory: 3812kb

input:

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

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
161
161
161
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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 #14:

score: 10
Accepted
time: 196ms
memory: 3852kb

input:

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

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
161
161
161
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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 #15:

score: 10
Accepted
time: 196ms
memory: 3880kb

input:

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

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
161
161
161
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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 #16:

score: 10
Accepted
time: 193ms
memory: 3820kb

input:

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

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
161
161
161
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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 #17:

score: 10
Accepted
time: 183ms
memory: 3756kb

input:

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

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
161
161
161
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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 #18:

score: 10
Accepted
time: 184ms
memory: 3884kb

input:

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

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
161
161
161
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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 #19:

score: 10
Accepted
time: 196ms
memory: 3812kb

input:

2 2
0 0
1 0
t

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
161
161
161
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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 #20:

score: 10
Accepted
time: 183ms
memory: 4044kb

input:

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

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
161
161
161
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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 #21:

score: 10
Accepted
time: 189ms
memory: 4112kb

input:

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

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
161
161
161
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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 #22:

score: 10
Accepted
time: 188ms
memory: 4128kb

input:

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

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
161
161
161
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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 #23:

score: 10
Accepted
time: 193ms
memory: 3828kb

input:

2 15
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 1 0 0 0
t

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
161
161
161
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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 #24:

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

input:

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

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
161
161
161
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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 #25:

score: 10
Accepted
time: 190ms
memory: 3816kb

input:

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

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
161
161
161
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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 #26:

score: 10
Accepted
time: 192ms
memory: 3820kb

input:

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

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
161
161
161
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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 #27:

score: 10
Accepted
time: 193ms
memory: 3912kb

input:

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

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
161
161
161
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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 #3:

score: 0
Wrong Answer

Test #28:

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

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
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
161
161
161
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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 Too many steps

Subtask #4:

score: 0
Wrong Answer

Test #40:

score: 0
Wrong Answer
time: 189ms
memory: 3816kb

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
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
161
161
161
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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 Too many steps

Subtask #5:

score: 0
Wrong Answer

Test #64:

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

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
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
161
161
161
161
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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 Too many steps