# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
654843 | keta_tsimakuridze | Soccer (JOI17_soccer) | C++14 | 514 ms | 25748 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
#define f first
#define s second
#define int long long
#define pii pair<int,int>
#define PII pair<pii,pii>
using namespace std;
const int N = 505 + 5, inf = 1e18; // !
int d[N][N][2], D[N][N][6];int n, m;
int dx[] = {0, 0, 0, 1, -1}, dy[] = {0, 1, -1, 0, 0};
bool ok(int i,int j) {
return (min(i, j) >= 0 && i <= n && j <= m);
}
main(){
cin >> n >> m;
int a, b, c;
cin >> a >> b >> c;
for(int i = 0; i <= n; i++) {
for(int j = 0; j <= m; j++) {
d[i][j][0] = d[i][j][1] = inf;
for(int t = 0; t <= 5; ++t) D[i][j][t] = inf;
}
}
int Q;
cin >> Q;
priority_queue<PII, vector<PII>, greater<PII> > pq;
queue<pair<int,int>> q[2];
for(int i = 1; i <= Q; i++) {
컴파일 시 표준 에러 (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... |