QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#340070#7123. Robot Contestlinrui#16 201ms4324kbC++141.2kb2024-02-28 14:13:492024-04-28 08:42:49

Judging History

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

  • [2024-04-28 08:42:49]
  • 管理员手动重测本题所有提交记录
  • 测评结果:16
  • 用时:201ms
  • 内存:4324kb
  • [2024-04-21 00:31:00]
  • 管理员手动重测本题所有提交记录
  • 测评结果:16
  • 用时:204ms
  • 内存:4452kb
  • [2024-02-28 14:13:49]
  • 评测
  • 测评结果:16
  • 用时:211ms
  • 内存:4448kb
  • [2024-02-28 14:13:49]
  • 提交

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{
			col=3;
			if(n==1)act='N';
			else act='W';
		}
		upd(i,w,s,e,n,col,act);
	}
}

詳細信息

Subtask #1:

score: 6
Accepted

Test #1:

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

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
67
67
67
163
67
67
67
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
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
...

result:

ok 

Test #2:

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

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
67
67
67
163
67
67
67
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
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
...

result:

ok 

Test #3:

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

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
67
67
67
163
67
67
67
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
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
...

result:

ok 

Test #4:

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

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
67
67
67
163
67
67
67
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
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
...

result:

ok 

Test #5:

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

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
67
67
67
163
67
67
67
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
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
...

result:

ok 

Test #6:

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

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
67
67
67
163
67
67
67
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
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
...

result:

ok 

Test #7:

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

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
67
67
67
163
67
67
67
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
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
...

result:

ok 

Test #8:

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

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
67
67
67
163
67
67
67
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
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
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: 4060kb

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
67
67
67
163
67
67
67
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
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
...

result:

wrong answer Invalid move: S = [1, -2, 3, -1, -2], A = 'W'

Subtask #3:

score: 0
Wrong Answer

Test #28:

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

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
67
67
67
163
67
67
67
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
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
...

result:

wrong answer Invalid move: S = [1, -2, 3, 3, -2], A = 'W'

Subtask #4:

score: 10
Acceptable Answer

Test #40:

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

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
67
67
67
163
67
67
67
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
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
...

result:

points 0.50

Test #41:

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

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
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
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
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
...

result:

points 0.50

Test #42:

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

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
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
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
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
...

result:

points 0.50

Test #43:

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

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
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
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
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
...

result:

points 0.50

Test #44:

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

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
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
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
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
...

result:

points 0.50

Test #45:

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

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
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
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
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
...

result:

points 0.50

Test #46:

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

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
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
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
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
...

result:

points 0.50

Test #47:

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

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
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
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
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
...

result:

points 0.50

Test #48:

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

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
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
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
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
...

result:

points 0.50

Test #49:

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

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
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
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
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
...

result:

points 0.50

Test #50:

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

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
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
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
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
...

result:

points 0.50

Test #51:

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

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
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
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
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
...

result:

points 0.50

Test #52:

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

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
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
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
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
...

result:

points 0.50

Test #53:

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

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
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
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
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
...

result:

points 0.50

Test #54:

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

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
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
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
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
...

result:

points 0.50

Test #55:

score: 10
Acceptable Answer
time: 179ms
memory: 4040kb

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
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
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
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
...

result:

points 0.50

Test #56:

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

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
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
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
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
...

result:

points 0.50

Test #57:

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

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
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
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
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
...

result:

points 0.50

Test #58:

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

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
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
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
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
...

result:

points 0.50

Test #59:

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

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
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
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
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
...

result:

points 0.50

Test #60:

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

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
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
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
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
...

result:

points 0.50

Test #61:

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

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
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
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
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
...

result:

points 0.50

Test #62:

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

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
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
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
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
...

result:

points 0.50

Test #63:

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

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
193
193
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
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
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
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: 184ms
memory: 4064kb

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
67
67
67
163
67
67
67
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
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
67
67
67
163
67
67
67
0
0
0
0
0
0
0
0
0
0
0
...

result:

wrong answer Invalid move: S = [1, -2, -1, 3, -2], A = 'W'