# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
491435 | Rainbowbunny | Political Development (BOI17_politicaldevelopment) | C++17 | 194 ms | 29060 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 <bits/stdc++.h>
using namespace std;
const int MAXN = 1e5 + 5;
const int MAXB = 10;
int n, kk;
set <int> M[MAXN];
int minbit[1 << MAXB], f[MAXB], cnt[1 << MAXB];
bitset <1 << MAXB> B;
bool Vis[MAXN];
int Check(int i)
{
int ans = 1;
int sz = M[i].size();
vector <int> Adj;
for(auto x : M[i])
{
Adj.push_back(x);
}
for(int j = 0; j < sz; j++)
{
f[j] = 0;
}
for(int j = 0; j < sz; j++)
{
for(int k = j + 1; k < sz; k++)
{
if(M[Adj[j]].count(Adj[k]))
# | 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... |