QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#162592#7123. Robot Contestvme500 4ms3764kbC++17568b2023-09-03 14:48:112024-04-28 06:52:38

Judging History

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

  • [2024-04-28 06:52:38]
  • 管理员手动重测本题所有提交记录
  • 测评结果:0
  • 用时:4ms
  • 内存:3764kb
  • [2024-04-21 00:17:14]
  • 管理员手动重测本题所有提交记录
  • 测评结果:0
  • 用时:4ms
  • 内存:3980kb
  • [2024-04-21 00:15:48]
  • 管理员手动重测本题所有提交记录
  • 测评结果:0
  • 用时:3ms
  • 内存:3972kb
  • [2023-09-03 23:12:18]
  • 管理员手动重测本题所有提交记录
  • 测评结果:0
  • 用时:4ms
  • 内存:3824kb
  • [2023-09-03 14:48:11]
  • 评测
  • 测评结果:0
  • 用时:4ms
  • 内存:3628kb
  • [2023-09-03 14:48:11]
  • 提交

answer

#include <bits/stdc++.h>
#include "robot.h"
using namespace std;
#define pb push_back
#define po pop_back
const char A[]="HWSEN";
void slv(vector<int> stt)
{
    if(!stt[0]) set_instruction(stt,1,A[0]);
    if(stt[0]==1)
    {
        if(stt[2]==-2 && stt[3]==-2) set_instruction(stt,1,'T');
        for(int i:{3,2,4}) if(!stt[i])
        {set_instruction(stt,1,A[i]);return;}
    }
}
void dfs(int u,vector<int> stt)
{
    if(u>4) {slv(stt);return;}
    for(int i=-2;i<=9;++i) stt.pb(i),dfs(u+1,stt),stt.po();
}
void program_pulibot() {dfs(0,{});}

詳細信息

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 0
Wrong Answer
time: 3ms
memory: 3728kb

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: 2ms
memory: 3732kb

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: 4ms
memory: 3604kb

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: 4ms
memory: 3728kb

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
Wrong Answer

Test #64:

score: 0
Wrong Answer
time: 4ms
memory: 3764kb

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

result:

wrong answer Same state array