QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#340073#7123. Robot Contestlinrui#25 210ms4448kbC++141.3kb2024-02-28 14:17:442024-04-21 00:31:01

Judging History

你现在查看的是测评时间为 2024-04-21 00:31:01 的历史记录

  • [2024-04-28 08:42:52]
  • 管理员手动重测本题所有提交记录
  • 测评结果:25
  • 用时:198ms
  • 内存:4424kb
  • [2024-04-21 00:31:01]
  • 管理员手动重测本题所有提交记录
  • 测评结果:25
  • 用时:210ms
  • 内存:4448kb
  • [2024-02-28 14:17:44]
  • 评测
  • 测评结果:25
  • 用时:199ms
  • 内存:4448kb
  • [2024-02-28 14:17:44]
  • 提交

answer

#include "robot.h"

//#include <vector>
//
//void program_pulibot();
//void set_instruction(std::vector<int> S, int Z, char A);

#include<bits/stdc++.h>
using namespace std;
using ll=long long;
using u64=unsigned long long;
using lf=long double;
#define F(i,l,r) for(int i=l;i<=r;++i)
#define G(i,r,l) for(int i=r;i>=l;--i)
#define ct const
#define il inline
#define pb push_back
#define fi first
#define se second
template<class T>
il void tomn(T&x,T ct&y){y<x?x=y,0:0;}
template<class T>
il void tomx(T&x,T ct&y){y>x?x=y,0:0;}
#define DEBUG(x) cerr<<"line:"<<__LINE__<<" "#x"="<<x<<endl
#define CUT cerr<<"**********\n"
#define dbg(...) fprintf(stderr,__VA_ARGS__)
const lf EPS=1e-10L;
il int dcmp(lf x){return fabs(x)<=EPS?0:(x<0?-1:1);}
const ll INF=4e18L;

void upd(int i,int w,int s,int e,int n,int col,char act){
	set_instruction(vector<int>{i,w,s,e,n},col,act);
}
void program_pulibot()
{
	F(i,-2,4)F(w,-2,4)F(s,-2,4)F(e,-2,4)F(n,-2,4){
		int col=1;
		char act;
		if(e==-2&&s==-2)act='T';
		else if(e==0)act='E';
		else if(s==0)act='S';
		else if(n==0)act='N';
		else if(w==0)act='W';
		else{
			col=3;
			if(w==1)act='W';
			else if(n==1)act='N';
			else if(s==1)act='S';
			else act='E';
		}
		upd(i,w,s,e,n,col,act);
	}
}

詳細信息

Subtask #1:

score: 6
Accepted

Test #1:

score: 6
Accepted
time: 190ms
memory: 4152kb

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
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

ok 

Test #2:

score: 6
Accepted
time: 191ms
memory: 4148kb

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
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

ok 

Test #3:

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

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
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

ok 

Test #4:

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

input:

2 2
0 0
0 0
t

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

ok 

Test #5:

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

input:

2 3
0 0 0
0 0 0
t

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

ok 

Test #6:

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

input:

2 4
0 0 0 0
0 0 0 0
t

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

ok 

Test #7:

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

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
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

ok 

Test #8:

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

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
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

ok 

Subtask #2:

score: 10
Accepted

Test #9:

score: 10
Accepted
time: 195ms
memory: 4084kb

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
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

ok 

Test #10:

score: 10
Accepted
time: 181ms
memory: 4088kb

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
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

ok 

Test #11:

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

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
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

ok 

Test #12:

score: 10
Accepted
time: 198ms
memory: 4036kb

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
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

ok 

Test #13:

score: 10
Accepted
time: 194ms
memory: 4088kb

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
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

ok 

Test #14:

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

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
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

ok 

Test #15:

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

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
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

ok 

Test #16:

score: 10
Accepted
time: 186ms
memory: 4080kb

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
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

ok 

Test #17:

score: 10
Accepted
time: 195ms
memory: 4140kb

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
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

ok 

Test #18:

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

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
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

ok 

Test #19:

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

input:

2 2
0 0
1 0
t

output:

p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp
OK
193
193
193
193
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

ok 

Test #20:

score: 10
Accepted
time: 194ms
memory: 4032kb

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
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

ok 

Test #21:

score: 10
Accepted
time: 195ms
memory: 4376kb

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
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

ok 

Test #22:

score: 10
Accepted
time: 210ms
memory: 4144kb

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
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

ok 

Test #23:

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

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
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

ok 

Test #24:

score: 10
Accepted
time: 186ms
memory: 4376kb

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
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

ok 

Test #25:

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

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
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

ok 

Test #26:

score: 10
Accepted
time: 187ms
memory: 4088kb

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
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

ok 

Test #27:

score: 10
Accepted
time: 195ms
memory: 4084kb

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
193
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

ok 

Subtask #3:

score: 9
Acceptable Answer

Test #28:

score: 9
Acceptable Answer
time: 195ms
memory: 4140kb

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
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

points 0.50

Test #29:

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

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
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

ok 

Test #30:

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

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
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

ok 

Test #31:

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

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
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

points 0.50

Test #32:

score: 9
Acceptable Answer
time: 186ms
memory: 4132kb

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
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

points 0.50

Test #33:

score: 9
Acceptable Answer
time: 197ms
memory: 4092kb

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
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

points 0.50

Test #34:

score: 9
Acceptable Answer
time: 203ms
memory: 4376kb

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
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

points 0.50

Test #35:

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

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
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

points 0.50

Test #36:

score: 9
Acceptable Answer
time: 194ms
memory: 4104kb

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
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

points 0.50

Test #37:

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

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
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

points 0.50

Test #38:

score: 9
Acceptable Answer
time: 191ms
memory: 4116kb

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
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

points 0.50

Test #39:

score: 9
Acceptable Answer
time: 195ms
memory: 4096kb

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
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

points 0.50

Subtask #4:

score: 0
Wrong Answer

Test #40:

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

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
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

wrong answer Not a path

Subtask #5:

score: 0
Wrong Answer

Test #64:

score: 0
Wrong Answer
time: 200ms
memory: 4180kb

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
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
129
129
129
129
129
129
129
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
131
131
161
163
131
131
131
0
0
...

result:

wrong answer Not a path