# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
61659 | gusfring | Soccer (JOI17_soccer) | C++14 | 709 ms | 19188 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
typedef long long lint;
typedef long double llf;
using namespace std;
typedef pair<int, int> pi;
int dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0, -1};
int n, m;
lint a, b, c;
int dis[505][505];
bool ok(int x, int y){
return x >= 0 && x <= n && y >= 0 && y <= m;
}
struct node{
int x, y, typ;
lint dis;
bool operator<(const node &c)const{
return dis > c.dis;
}
};
priority_queue<node> pq;
lint dist[505][505][5];
void enqueue(int x, int y, int t, lint d){
if(!ok(x, y)) return;
if(dist[x][y][t] > d){
dist[x][y][t] = d;
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |