QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#340061 | #7123. Robot Contest | linrui# | 6 | 197ms | 4092kb | C++14 | 1.1kb | 2024-02-28 14:03:07 | 2024-04-28 08:42:23 |
Judging History
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,1)F(w,-2,1)F(s,-2,1)F(e,-2,1)F(n,-2,1){
int col=1;
char act;
if(e==0)act='E';
else if(s==0)act='S';
else if(n==0)act='N';
else act='T';
upd(i,w,s,e,n,col,act);
}
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 6
Accepted
Test #1:
score: 6
Accepted
time: 192ms
memory: 4068kb
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 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 129 129 129 129 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
ok
Test #2:
score: 6
Accepted
time: 197ms
memory: 3880kb
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 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 129 129 129 129 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
ok
Test #3:
score: 6
Accepted
time: 196ms
memory: 3756kb
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 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 129 129 129 129 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
ok
Test #4:
score: 6
Accepted
time: 192ms
memory: 3820kb
input:
2 2 0 0 0 0 t
output:
p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp OK 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 129 129 129 129 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
ok
Test #5:
score: 6
Accepted
time: 188ms
memory: 3860kb
input:
2 3 0 0 0 0 0 0 t
output:
p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp OK 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 129 129 129 129 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
ok
Test #6:
score: 6
Accepted
time: 197ms
memory: 3832kb
input:
2 4 0 0 0 0 0 0 0 0 t
output:
p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp OK 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 129 129 129 129 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
ok
Test #7:
score: 6
Accepted
time: 188ms
memory: 3812kb
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 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 129 129 129 129 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
ok
Test #8:
score: 6
Accepted
time: 188ms
memory: 4092kb
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 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 129 129 129 129 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
ok
Subtask #2:
score: 0
Wrong Answer
Test #9:
score: 10
Accepted
time: 193ms
memory: 4064kb
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 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 129 129 129 129 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
ok
Test #10:
score: 10
Accepted
time: 184ms
memory: 3812kb
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 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 129 129 129 129 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
ok
Test #11:
score: 10
Accepted
time: 192ms
memory: 3820kb
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 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 129 129 129 129 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
ok
Test #12:
score: 10
Accepted
time: 196ms
memory: 3820kb
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 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 129 129 129 129 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
ok
Test #13:
score: 10
Accepted
time: 188ms
memory: 3856kb
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 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 129 129 129 129 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
ok
Test #14:
score: 10
Accepted
time: 196ms
memory: 3884kb
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 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 129 129 129 129 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
ok
Test #15:
score: 10
Accepted
time: 193ms
memory: 3916kb
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 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 129 129 129 129 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
ok
Test #16:
score: 10
Accepted
time: 188ms
memory: 4068kb
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 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 129 129 129 129 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:
ok
Test #17:
score: 0
Wrong Answer
time: 196ms
memory: 3920kb
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 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 129 129 129 129 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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 Not a path
Subtask #3:
score: 0
Wrong Answer
Test #28:
score: 0
Wrong Answer
time: 189ms
memory: 3808kb
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 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 129 129 129 129 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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 Not a path
Subtask #4:
score: 0
Wrong Answer
Test #40:
score: 0
Wrong Answer
time: 173ms
memory: 3800kb
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 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 129 129 129 129 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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 Not a path
Subtask #5:
score: 0
Wrong Answer
Test #64:
score: 0
Wrong Answer
time: 193ms
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 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 129 129 129 129 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 193 161 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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 Not a path