| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 358430 | juggernaut | Wombats (IOI13_wombats) | C++14 | 2779 ms | 8280 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include"wombats.h"
#ifndef EVAL
#include"grader.c"
#endif
#include<bits/stdc++.h>
using namespace std;
int h[200][5000],v[200][5000],dp[200];
int n,m;
void init(int R,int C,int H[5000][200],int V[5000][200]){
n=R,m=C;
for(int y=0;y<n;y++)
for(int x=0;x+1<m;x++)h[x][y]=H[y][x];
for(int x=0;x<m;x++)
for(int y=0;y+1<n;y++)v[x][y]=V[y][x];
}
void changeH(int P,int Q,int W){
h[Q][P]=W;
}
void changeV(int P,int Q,int W){
v[Q][P]=W;
}
int escape(int V1,int V2){
for(int x=0;x<m;x++)dp[x]=2e9;
dp[V1]=0;
for(int x=0;x+1<m;x++)dp[x+1]=min(dp[x+1],dp[x]+v[x][0]);
for(int x=m-1;x>0;x--)dp[x-1]=min(dp[x-1],dp[x]+v[x-1][0]);
for(int y=0;y+1<n;y++){
for(int x=0;x<m;x++)dp[x]+=v[x][y];
for(int x=0;x+1<m;x++)dp[x+1]=min(dp[x+1],dp[x]+v[x][y+1]);
for(int x=m-1;x>0;x--)dp[x-1]=min(dp[x-1],dp[x]+v[x-1][y+1]);
}
return dp[V2];
}
컴파일 시 표준 에러 (stderr) 메시지
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
