# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
996680 | hotboy2703 | Ancient Machine (JOI21_ancient_machine) | C++17 | 44 ms | 10652 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 "Anna.h"
#include<bits/stdc++.h>
using ll = int;
using namespace std;
#define pll pair <ll,ll>
#define fi first
#define se second
#define MP make_pair
#define sz(a) (ll((a).size()))
#define BIT(mask,i) (((mask) >> (i))&1)
#define MASK(i) (1LL << (i))
namespace A{
const ll BIG = 14;
const ll SMALL = 10;
struct pt{
ll type,l,r;
};
vector <ll> all;
void init(){
for (ll i = 0;i < MASK(BIG);i ++){
bool ok = 1;
for (ll j = 1;j < BIG;j ++){
if (BIT(i,j)&&BIT(i,j-1))ok = 0;
}
if (ok)all.push_back(i);
}
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |