# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
805595 | Antekb | 웜뱃 (IOI13_wombats) | C++17 | 20064 ms | 35984 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "wombats.h"
#include<bits/stdc++.h>
using namespace std;
const int RMAX=5000, CMAX=200, BLOMAX=130;
int H[RMAX][CMAX], V[RMAX][CMAX], R, C, K=85, blo;
int dist[2*BLOMAX][CMAX][CMAX], pocz[BLOMAX], kon[BLOMAX], czy[BLOMAX*2];
int res[CMAX][CMAX];
void get_res(){
for(int i=0; i<C; i++){
for(int j=0; j<C; j++){
res[i][j]=dist[1][i][j];
}
for(int j=1; j<C; j++){
res[i][j]=min(res[i][j], res[i][j-1]+H[R-1][j-1]);
}
for(int j=C-2; j>=0; j--){
res[i][j]=min(res[i][j+1]+H[R-1][j], res[i][j]);
}
}
}
int escape(int V1, int V2) {
/*int ans=dist[1][V1][V2];
int sum=0;
for(int i=V2+1; i<C; i++){
sum+=H[R-1][i-1];
ans=min(ans, dist[1][V1][i]+sum);
}
sum=0;
for(int i=V2-1; i>=0; i--){
sum+=H[R-1][i];
Compilation message (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... |