QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#163947#7123. Robot ContestQAQAutoMaton#24 237ms4428kbC++141.1kb2023-09-04 17:12:322023-09-04 17:12:32

Judging History

你现在查看的是测评时间为 2023-09-04 17:12:32 的历史记录

  • [2024-04-28 07:06:33]
  • 管理员手动重测本题所有提交记录
  • 测评结果:24
  • 用时:210ms
  • 内存:4680kb
  • [2024-04-21 00:21:03]
  • 管理员手动重测本题所有提交记录
  • 测评结果:24
  • 用时:204ms
  • 内存:4676kb
  • [2023-09-04 17:12:32]
  • 评测
  • 测评结果:24
  • 用时:237ms
  • 内存:4428kb
  • [2023-09-04 17:12:32]
  • 提交

answer

#include "robot.h"

#include<bits/stdc++.h>
// 1 W y-1
// 2 S x+1
// 3 E y+1 
// 4 N x-1
//
// 2 -> to be deleted
// 3 4 5 6 -> WSEN
// 7 8 9 10 -> del WSEN
const char s[]="WSEN";
const char r[]="ENWS";
void check(std::vector<int> v){
	int fr=-1;
	for(int i=1;i<=4;++i)if(v[i]>=3 && r[v[i]-3]==s[i-1]){
		fr=i-1;
		break;
	}
	if(v[2]==-2 && v[3]==-2){
		if(~fr)set_instruction(v,1,s[fr]);
		else set_instruction(v,1,'T');
		return;
	}
	int end=0;
	for(int i=1;i<=4;++i)if(v[i]==1)end=i;
	if(end){
		for(int i=1;i<=4;++i)if(v[i]==2){
			set_instruction(v,1,s[i-1]);
			return;
		}
		if(~fr)set_instruction(v,1,s[fr]);
		else if(v[1]==-2 && v[4]==-2)set_instruction(v,1,'T');
		else set_instruction(v,0,s[end-1]);
	}
	else{
		for(int i=1;i<=4;++i)if(v[i]==0){
			set_instruction(v,i+2,s[i-1]);
			return;
		}
		if(~fr)set_instruction(v,2,s[fr]);
		else set_instruction(v,1,'T');
	}
}
void program_pulibot()
{
	for(int a=-2;a<=6;++a)
		for(int b=-2;b<=6;++b)
			for(int c=-2;c<=6;++c)
				for(int d=-2;d<=6;++d)
					for(int e=-2;e<=6;++e){
						check({a,b,c,d,e});
					}
}

詳細信息

Subtask #1:

score: 6
Accepted

Test #1:

score: 6
Accepted
time: 211ms
memory: 4220kb

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
193
161
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
160
193
193
162
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
133
133
133
160
133
133
133
133
133
0
0
0
0
0
0
0
0
0
0
0
0
0
193
128
128
160
161
128
161
128
128
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
129
...

result:

ok 

Test #2:

score: 6
Accepted
time: 200ms
memory: 4248kb

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
193
161
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
160
193
193
162
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
133
133
133
160
133
133
133
133
133
0
0
0
0
0
0
0
0
0
0
0
0
0
193
128
128
160
161
128
161
128
128
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
129
...

result:

ok 

Test #3:

score: 6
Accepted
time: 219ms
memory: 4236kb

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
193
161
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
160
193
193
162
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
133
133
133
160
133
133
133
133
133
0
0
0
0
0
0
0
0
0
0
0
0
0
193
128
128
160
161
128
161
128
128
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
129
...

result:

ok 

Test #4:

score: 6
Accepted
time: 237ms
memory: 4252kb

input:

2 2
0 0
0 0
t

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
193
193
161
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
160
193
193
162
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
133
133
133
160
133
133
133
133
133
0
0
0
0
0
0
0
0
0
0
0
0
0
193
128
128
160
161
128
161
128
128
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
129
...

result:

ok 

Test #5:

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

input:

2 3
0 0 0
0 0 0
t

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
193
193
161
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
160
193
193
162
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
133
133
133
160
133
133
133
133
133
0
0
0
0
0
0
0
0
0
0
0
0
0
193
128
128
160
161
128
161
128
128
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
129
...

result:

ok 

Test #6:

score: 6
Accepted
time: 208ms
memory: 4236kb

input:

2 4
0 0 0 0
0 0 0 0
t

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
193
193
161
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
160
193
193
162
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
133
133
133
160
133
133
133
133
133
0
0
0
0
0
0
0
0
0
0
0
0
0
193
128
128
160
161
128
161
128
128
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
129
...

result:

ok 

Test #7:

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

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
193
161
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
160
193
193
162
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
133
133
133
160
133
133
133
133
133
0
0
0
0
0
0
0
0
0
0
0
0
0
193
128
128
160
161
128
161
128
128
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
129
...

result:

ok 

Test #8:

score: 6
Accepted
time: 231ms
memory: 4228kb

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
193
161
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
160
193
193
162
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
133
133
133
160
133
133
133
133
133
0
0
0
0
0
0
0
0
0
0
0
0
0
193
128
128
160
161
128
161
128
128
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
129
...

result:

ok 

Subtask #2:

score: 0
Wrong Answer

Test #9:

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

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
193
161
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
160
193
193
162
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
133
133
133
160
133
133
133
133
133
0
0
0
0
0
0
0
0
0
0
0
0
0
193
128
128
160
161
128
161
128
128
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
129
...

result:

ok 

Test #10:

score: 10
Accepted
time: 208ms
memory: 4228kb

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
193
161
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
160
193
193
162
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
133
133
133
160
133
133
133
133
133
0
0
0
0
0
0
0
0
0
0
0
0
0
193
128
128
160
161
128
161
128
128
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
129
...

result:

ok 

Test #11:

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

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
193
161
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
160
193
193
162
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
133
133
133
160
133
133
133
133
133
0
0
0
0
0
0
0
0
0
0
0
0
0
193
128
128
160
161
128
161
128
128
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
129
...

result:

wrong answer Not a path

Subtask #3:

score: 18
Accepted

Test #28:

score: 18
Accepted
time: 202ms
memory: 4216kb

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
193
161
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
160
193
193
162
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
133
133
133
160
133
133
133
133
133
0
0
0
0
0
0
0
0
0
0
0
0
0
193
128
128
160
161
128
161
128
128
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
129
...

result:

ok 

Test #29:

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

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
193
161
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
160
193
193
162
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
133
133
133
160
133
133
133
133
133
0
0
0
0
0
0
0
0
0
0
0
0
0
193
128
128
160
161
128
161
128
128
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
129
...

result:

ok 

Test #30:

score: 18
Accepted
time: 234ms
memory: 4296kb

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
193
161
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
160
193
193
162
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
133
133
133
160
133
133
133
133
133
0
0
0
0
0
0
0
0
0
0
0
0
0
193
128
128
160
161
128
161
128
128
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
129
...

result:

ok 

Test #31:

score: 18
Accepted
time: 213ms
memory: 4296kb

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
193
161
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
160
193
193
162
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
133
133
133
160
133
133
133
133
133
0
0
0
0
0
0
0
0
0
0
0
0
0
193
128
128
160
161
128
161
128
128
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
129
...

result:

ok 

Test #32:

score: 18
Accepted
time: 214ms
memory: 4244kb

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
193
161
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
160
193
193
162
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
133
133
133
160
133
133
133
133
133
0
0
0
0
0
0
0
0
0
0
0
0
0
193
128
128
160
161
128
161
128
128
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
129
...

result:

ok 

Test #33:

score: 18
Accepted
time: 189ms
memory: 4216kb

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
193
161
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
160
193
193
162
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
133
133
133
160
133
133
133
133
133
0
0
0
0
0
0
0
0
0
0
0
0
0
193
128
128
160
161
128
161
128
128
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
129
...

result:

ok 

Test #34:

score: 18
Accepted
time: 215ms
memory: 4428kb

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
193
161
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
160
193
193
162
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
133
133
133
160
133
133
133
133
133
0
0
0
0
0
0
0
0
0
0
0
0
0
193
128
128
160
161
128
161
128
128
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
129
...

result:

ok 

Test #35:

score: 18
Accepted
time: 200ms
memory: 4296kb

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
193
161
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
160
193
193
162
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
133
133
133
160
133
133
133
133
133
0
0
0
0
0
0
0
0
0
0
0
0
0
193
128
128
160
161
128
161
128
128
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
129
...

result:

ok 

Test #36:

score: 18
Accepted
time: 207ms
memory: 4228kb

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
193
161
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
160
193
193
162
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
133
133
133
160
133
133
133
133
133
0
0
0
0
0
0
0
0
0
0
0
0
0
193
128
128
160
161
128
161
128
128
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
129
...

result:

ok 

Test #37:

score: 18
Accepted
time: 226ms
memory: 4216kb

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
193
161
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
160
193
193
162
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
133
133
133
160
133
133
133
133
133
0
0
0
0
0
0
0
0
0
0
0
0
0
193
128
128
160
161
128
161
128
128
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
129
...

result:

ok 

Test #38:

score: 18
Accepted
time: 200ms
memory: 4220kb

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
193
161
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
160
193
193
162
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
133
133
133
160
133
133
133
133
133
0
0
0
0
0
0
0
0
0
0
0
0
0
193
128
128
160
161
128
161
128
128
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
129
...

result:

ok 

Test #39:

score: 18
Accepted
time: 191ms
memory: 4216kb

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
193
161
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
160
193
193
162
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
133
133
133
160
133
133
133
133
133
0
0
0
0
0
0
0
0
0
0
0
0
0
193
128
128
160
161
128
161
128
128
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
129
...

result:

ok 

Subtask #4:

score: 0
Wrong Answer

Test #40:

score: 0
Wrong Answer
time: 205ms
memory: 4344kb

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
193
161
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
160
193
193
162
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
133
133
133
160
133
133
133
133
133
0
0
0
0
0
0
0
0
0
0
0
0
0
193
128
128
160
161
128
161
128
128
0
0
0
0
0
0
0
0
0
0
0
0
0
193
193
166
129
...

result:

wrong answer Not a path

Subtask #5:

score: 0
Skipped

Dependency #1:

100%
Accepted

Dependency #2:

0%