# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
899183 | LCJLY | 벽 칠하기 (APIO20_paint) | C++14 | 1589 ms | 56340 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "paint.h"
#include <bits/stdc++.h>
#define show(x,y) cout << y << " " << #x << endl;
#define show2(x,y,i,j) cout << y << " " << #x << " " << j << " " << #i << endl;
#define show3(x,y,i,j,p,q) cout << y << " " << #x << " " << j << " " << #i << " " << q << " " << #p << endl;
#define show4(x,y) for(auto it:x) cout << it << " "; cout << #y << endl;
using namespace std;
int n,m,k;
int arr[100005];
unordered_set<int>check[500005];
int memo[100005];
vector<int>color[100005];
int dp(int index){
if(index==n) return 0;
else if(index>n-m) return INT_MAX/3;
if(memo[index]!=-1) return memo[index];
int ans=INT_MAX/3;
//check
bool amos=false;
//for(int x=0;x<m;x++){
//bool hayden=true;
//for(int y=0;y<m;y++){
//if(check[x+y].find(arr[index+y])==check[x+y].end()) hayden=false;
//}
//amos|=hayden;
//}
# | 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... |