# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
793021 | UmairAhmadMirza | Love Polygon (BOI18_polygon) | C++14 | 427 ms | 29864 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
int const N=1e5+5;
map<string,int> mp;
int suc[N];
vector<int> lover[N];
vector<int> adj[N];
vector<int> cc[N];
int c=0;
int ccn[N];
int _dp[N],dp[N];
void dfs(int node){
ccn[node]=c;
cc[c].push_back(node);
for(auto i:adj[node])
if(ccn[i]==0)
dfs(i);
}
void LIS(int root){//largest_independent_set
// cout<<root<<endl;
for(auto i:lover[root])
if(i!=root)
LIS(i);
_dp[root]=1;
int maxx=0;
for(auto i:lover[root])
if(i!=root){
_dp[root]+=dp[i];
dp[root]+=dp[i];
maxx=max(maxx,_dp[i]-dp[i]);
# | 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... |