# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
246256 | m3r8 | Political Development (BOI17_politicaldevelopment) | C++14 | 3089 ms | 311672 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <stdio.h>
#include <vector>
#include <algorithm>
#include <set>
#include <bitset>
#include <utility>
#define N 50100
#define ii std::pair<int,int>
std::set<int> tst[N];
std::vector<int> adj[N];
int k;
std::vector<std::bitset<N>> add(N);
int cclq(std::bitset<N> akt, std::bitset<N> can, int idx, int depth){
int mx = depth;
if(akt.count() < depth)return depth-1;
else if(depth >= k)return depth;
else{
for(int i = 0;i<adj[idx].size();i++){
if((add[adj[idx][i]]&can).count() >= depth){
can[adj[idx][i]] = 1;
mx = std::max(mx,cclq(akt&add[adj[idx][i]],can,adj[idx][i],depth+1));
can[adj[idx][i]] = 0;
};
};
};
컴파일 시 표준 에러 (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... |