QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#178541#7123. Robot Contesttriple321#0 193ms3968kbC++201.2kb2023-09-14 03:31:162023-09-14 03:31:17

Judging History

你现在查看的是测评时间为 2023-09-14 03:31:17 的历史记录

  • [2024-04-28 07:42:28]
  • 管理员手动重测本题所有提交记录
  • 测评结果:0
  • 用时:189ms
  • 内存:3980kb
  • [2024-04-21 00:25:01]
  • 管理员手动重测本题所有提交记录
  • 测评结果:0
  • 用时:196ms
  • 内存:4056kb
  • [2023-09-14 03:31:17]
  • 评测
  • 测评结果:0
  • 用时:193ms
  • 内存:3968kb
  • [2023-09-14 03:31:16]
  • 提交

answer

#include "robot.h"
#include <bits/stdc++.h>
#ifdef CYBER
#include "grader.cpp"
#endif

using namespace std;
#define lg long long

void fg(vector<lg> a, lg idx)
{
	if(idx == 5)
	{
		set_instruction({a[0], a[1], a[2], a[3], a[4]}, 1, (char)(a[5]));
		return;
	}
	if(a[idx] == -1)
	{
		fg(a, idx+1);
		a[idx] = -2;
		fg(a, idx+1);
		a[idx] = 1;
		fg(a, idx+1);
		a[idx] = -1;
	}
	return;
}

void program_pulibot()
{
	vector<vector<lg>> v;
	v.push_back({0, 0, 0, 0, -1, 'E'});
	v.push_back({0, 0, -1, 0, 0, 'E'});
	v.push_back({0, -1, 0, 0, 0, 'E'});
	v.push_back({0, -1, 0, 0, -1, 'E'});
	v.push_back({0, -1, -1, 0, 0, 'E'});
	v.push_back({0, -1, -1, 0, -1, 'E'});
	
	v.push_back({0, 0, -1, -1, 0, 'N'});
	// v.push_back({0, 0, 0, -1, 0, 'N'});
	v.push_back({0, -1, -1, -1, 0, 'N'});
	// v.push_back({0, -1, 0, -1, 0, 'N'});
	
	v.push_back({0, 0, 0, -1, -1, 'S'});
	// v.push_back({0, 0, 0, -1, 0, 'S'});
	v.push_back({0, -1, 0, -1, -1, 'S'});
	// v.push_back({0, -1, 0, -1, 0, 'S'});
	
	for(int i = 0; i < v.size(); i++)
	{
		fg(v[i], 0);
	}
    
	for(int j = -2; j <= 1; j++)
	{
		for(int k = -2; k <= 1; k++)
		{
			set_instruction({0, j, -2, -2, k}, 1, 'T');
		}
	}
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

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

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
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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 Unexpected state: [0, -2, 0, 0, -2]

Subtask #2:

score: 0
Wrong Answer

Test #9:

score: 0
Wrong Answer
time: 190ms
memory: 3836kb

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
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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 Unexpected state: [0, -2, 0, -1, -2]

Subtask #3:

score: 0
Wrong Answer

Test #28:

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

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
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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 Unexpected state: [0, -2, 0, 0, -2]

Subtask #4:

score: 0
Wrong Answer

Test #40:

score: 0
Wrong Answer
time: 192ms
memory: 3872kb

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
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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 Unexpected state: [0, -2, 0, 0, -2]

Subtask #5:

score: 0
Skipped

Dependency #1:

0%