# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
280163 | Saboon | 웜뱃 (IOI13_wombats) | C++14 | 20096 ms | 37140 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "wombats.h"
#include<bits/stdc++.h>
using namespace std;
const int inf = 1e9;
const int T = 71;
int R, C, H[5000][200], V[5000][200];
int bl[T][200][200], dp[2][200][200];
void MakeAll(){
memset(dp, 63, sizeof dp);
for (int i = 0; i < C; i++)
dp[0][i][i] = 0;
for (int i = 0; i < R; i += T){
for (int j = 0; j < C; j++)
for (int k = 0; k < C; k++)
for (int x = 0; x < C; x++)
dp[1][j][k] = min(dp[1][j][k], dp[0][j][x] + bl[i/T][x][k]);
for (int j = 0; j < C; j++)
for (int k = 0; k < C; k++)
dp[0][j][k] = dp[1][j][k], dp[1][j][k] = inf;
}
}
void ChangeBlock(int block){
for (int j = 0; j < C; j++){
for (int k = 0; k < C; k++)
bl[block][j][k] = inf;
bl[block][j][j] = 0;
for (int k = j+1; k < C; k++)
bl[block][j][k] = bl[block][j][k-1] + H[T*block][k-1];
컴파일 시 표준 에러 (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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |