# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
155437 | karma | Mecho (IOI09_mecho) | C++14 | 826 ms | 6676 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
#define pb emplace_back
#define mp make_pair
#define fi first
#define se second
#define ll long long
using namespace std;
//T cay, M pos, D nha, G co, H ong
const int N = 803;
const int oo = int(1e9);
typedef pair<int, int> pii;
int lv[N][N], n, s;
bool vis[N][N];
string a[N], org[N];
queue<pii> q;
vector<pii> honey, cur, _cur, _honey;
pii st, en;
int dx[] = {1, -1, 0, 0};
int dy[] = {0, 0, 1, -1};
bool Inside(int i, int j) {return i >= 1 && i <= n && j >= 1 && j <= n;}
int deg(int i, int j) {
int x = 0; pii nxt;
for(int k = 0; k < 4; ++k) {
nxt = mp(i + dx[k], j + dy[k]);
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |