QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#178550#7123. Robot Contesttriple321#0 1ms3820kbC++202.1kb2023-09-14 03:58:172023-09-14 03:58:17

Judging History

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

  • [2024-04-28 07:42:46]
  • 管理员手动重测本题所有提交记录
  • 测评结果:0
  • 用时:1ms
  • 内存:3804kb
  • [2024-04-21 00:25:14]
  • 管理员手动重测本题所有提交记录
  • 测评结果:0
  • 用时:1ms
  • 内存:3804kb
  • [2023-09-14 03:58:17]
  • 评测
  • 测评结果:0
  • 用时:1ms
  • 内存:3820kb
  • [2023-09-14 03:58:17]
  • 提交

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)
	{
		// cout << a[0] << ' ' << a[1] << ' ' << a[2] << ' ' << a[3] << ' ' << a[4] << ' ' << 1 << ' ' << (char)(a[5]) << '\n';
		if(a[2] == -2 && a[3] == -2)	return;
		set_instruction({a[0], a[1], a[2], a[3], a[4]}, !(a[1] && a[2] && a[3] && a[4]), (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;
	}
	else	fg(a, idx+1);
	return;
}

void program_pulibot()
{
	vector<vector<lg>> v;
	v.push_back({0, 0, 0, 0, 0, 'E'});
	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, 0, -1, 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'});
	
	
	v.push_back({0, 0, -1, -1, -1, 'W'});
	
	v.push_back({0, 1, -1, -1, -1, 'W'});
	v.push_back({0, -1, 1, -1, -1, 'S'});
	v.push_back({0, -1, -1, 1, -1, 'E'});
	v.push_back({0, -1, -1, -1, 1, 'N'});
	
	v.push_back({1, 1, -1, -1, -1, 'W'});
	v.push_back({1, -1, 1, -1, -1, 'S'});
	v.push_back({1, -1, -1, 1, -1, 'E'});
	v.push_back({1, -1, -1, -1, 1, 'N'});
	
	for(int i = 0; i < v.size(); i++)
	{
		fg(v[i], 0);
	}
    
	set_instruction({0, 1, -2, -2, -2}, 1, 'T');
	set_instruction({0, 1, -2, -2, -1}, 1, 'T');
	set_instruction({0, 1, -2, -2, 1}, 1, 'T');
	set_instruction({0, 1, -2, -2, 0}, 1, 'T');
	set_instruction({0, 0, -2, -2, 1}, 1, 'T');
	set_instruction({0, -1, -2, -2, 1}, 1, 'T');
	set_instruction({0, -2, -2, -2, 1}, 1, 'T');
}
/*
6 6
0 0 0 0 1 1
1 1 1 0 1 1
0 0 0 0 1 1
0 1 1 1 1 1
0 1 1 1 1 1
0 0 0 0 0 0
*/

详细

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3584kb

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
PV
Same state array

result:

wrong answer Same state array

Subtask #2:

score: 0
Wrong Answer

Test #9:

score: 0
Wrong Answer
time: 1ms
memory: 3584kb

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
PV
Same state array

result:

wrong answer Same state array

Subtask #3:

score: 0
Wrong Answer

Test #28:

score: 0
Wrong Answer
time: 0ms
memory: 3784kb

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
PV
Same state array

result:

wrong answer Same state array

Subtask #4:

score: 0
Wrong Answer

Test #40:

score: 0
Wrong Answer
time: 0ms
memory: 3820kb

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
PV
Same state array

result:

wrong answer Same state array

Subtask #5:

score: 0
Skipped

Dependency #1:

0%