# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
494594 | uncripted | Awesome Arrowland Adventure (eJOI19_adventure) | C++11 | 104 ms | 8960 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<bits/stdc++.h>
using namespace std;
#define f first
#define s second
#define pb push_back
long long n,m;
char a[505][505];
char c[4]={'N','E','S','W'};
bool bound(long long x,long long y){
if(x<0 || y<0 || x>=n || y>=m){
return 0;
}
return 1;
}
long long dp[505][505];
long long dif(char x, char y){
long long ix=0,iy=0;
if(x=='X'){
return 1e9;
}
for(long long i=0; i<4; i++){
if(c[i]==x){
ix=i;
}
}
for(long long i=0; i<4; i++){
if(c[i]==y){
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |