# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
643356 | Matteo_Verz | Present (RMI21_present) | C++17 | 3964 ms | 16524 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>
#ifdef BLAT
#include "debug/debug.hpp"
#else
#define debug(x...)
#endif
using namespace std;
void printSet(long long set, int setidx = 0) {
// cout << "S" << setidx << " = ";
cout << __builtin_popcountll(set) << ' ';
for (int i = 1; i <= 40; i++)
if (set & (1LL << i))
cout << i << ' ';
cout << endl;
}
void generateNextSet(long long &mask) {
for (int i = 1; i <= 40; i++) {
mask ^= (1LL << i);
if (mask & (1LL << i)) {
break;
}
}
queue <int> q;
for (int i = 1; i <= 40; i++)
for (int j = 1; j <= 40; j++)
if ((mask & (1LL << i)) && (mask & (1LL << j))) {
# | 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... |