# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
954224 | tmtxangel | Mecho (IOI09_mecho) | C++17 | 178 ms | 11992 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define lli long long
#define ld long double
#define tmt angel
using namespace std;
const int maxn = 802;
int vis[maxn][maxn], n, m;
char a[maxn][maxn];
int tim[maxn][maxn];
int mtim[maxn][maxn];
int hi, hj, sti, stj;
int x[4] = {1, -1, 0, 0};
int y[4] = {0, 0, 1, -1};
deque<pair<pair<int, int>, int>> s;
bool flag = false;
int bvis[maxn][maxn];
bool valid_sq(int nx, int ny) {
return nx >= 0 && nx < n && ny >= 0 && ny < n &&
(a[nx][ny] == 'G' || a[nx][ny] == 'M');
}
void gocheck(int i, int j, int cost)
{
if(i < 1 || j < 1 || i > n || j > n || bvis[i][j] == 1 || a[i][j] == 'D' || a[i][j] == 'T') return;
bvis[i][j] = 1;
tim[i][j] = cost;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |