# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
602479 | AGE | Patkice (COCI20_patkice) | C++14 | 5 ms | 6636 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>
#define F first
#define S second
#define int long long
#define pb push_back
using namespace std;
const int N=2e5+10,M=3e3+10,mod=1e9+7;
int idx[4]={0,0,-1,1};
int idy[4]={1,-1,0,0};
char x[4]={'E','W','N','S'};
int ans[150][150],n,m;
string s[N];
bool inside(int x,int y){
return ((x>=0)&&(x<n)&&(y<m)&&(y>=0)&&(ans[x][y]==-1e18));
}
void floodfill(int x,int y,int type){
if(s[x][y]=='x')
return ;
else if(s[x][y]=='>'){
if(!inside(x,y+1))
return ;
ans[x][y+1]=ans[x][y]+1;
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |