# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
311273 | Vladth11 | Political Development (BOI17_politicaldevelopment) | C++14 | 3073 ms | 32120 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>
#define debug(x) cerr << #x << " " << x << "\n"
#define debug_with_space(x) cerr << #x << " " << x << " "
using namespace std;
typedef long long ll;
typedef pair <ll, ll> pii;
typedef pair <ll, pii> muchie;
const ll NMAX = 100005;
const ll INF = (1LL << 60);
const ll MOD = 1000000007;
const ll BLOCK = 101;
set <int> v[NMAX],st;
int maxim = 1,k;
int deg[NMAX];
set <pii> pq;
void afiseaza(int x){
for(auto i : v[x])
debug_with_space(i);
cerr << "\n";
}
void clique(int i) {
int nrbits = v[i].size();
// debug(i);
for(int mask = 1; mask < (1 << nrbits); mask++) {
int cnt = 1;int bb = __builtin_popcount(mask);
if(bb + 1 > k || bb + 1 < maxim)
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... |