# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
466366 | Namnamseo | Sandwich (JOI16_sandwich) | C++17 | 4289 ms | 18196 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;
const int inf = 1e9;
#define isinf asdf
char sand[410][410];
int n, m;
bool onstk[410][410];
bool vis[410][410];
int dpU[410][410];
int dpD[410][410];
int dx[4] = {0, -1, 0, 1};
int dy[4] = {1, 0, -1, 0};
/*
1
2 x 0
3
*/
bool isinf;
int dfs(int x, int y,int last_dir){
onstk[x][y] = 1;
vis[x][y] = 1;
int ret = 1;
int nxt_dir = 0;
if(sand[x][y] == 'Z'){
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |