# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
185647 | anonymous | Tenis (COI19_tenis) | C++14 | 1076 ms | 9148 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<iostream>
#include<queue>
#define MAXN 100005
using namespace std;
int N,Q, L[MAXN][3], Pos[MAXN][3], Worst[3][3][MAXN]; //(i,j,k) lowest ranked player on court type i in first k of court type j
bool done[MAXN];
int f1=1, f2=1, f3=1; //frontiers
int op, qa, qb, qc;
queue <int> q;
void slv() {
f1=1, f2=1, f3=1;
for (int i=0; i<3; i++) {
for (int j=1; j<=N; j++) {
Pos[L[j][i]][i]=j;
}
}
for (int i=0; i<3; i++) {
for (int j=1; j<=N; j++) {
for (int k=0; k<3; k++) {
Worst[i][k][j]=0;
} //i is current court, k is court being maximised, j is prefix
}
}
for (int i=0; i<3; i++) {
for (int j=1; j<=N; j++) {
for (int k=0; k<3; k++) {
Worst[i][k][j]=max(max(Worst[i][k][j], Worst[i][k][j-1]), Pos[L[j][i]][k]);
} //i is current court, k is court being maximised, j is prefix
}
}
컴파일 시 표준 에러 (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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |