# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1167214 | fryingduc | Broken Device (JOI17_broken_device) | C++20 | 19 ms | 1344 KiB |
#include "Annalib.h"
#include "bits/stdc++.h"
using namespace std;
namespace {
string c0[] = {"001", "011", "110", "111"};
string c1[] = {"101", "010"};
// 100
const int maxn = 155;
int n, k, p[maxn];
long long x;
bool ban[maxn];
string s;
}
void Anna(int N, long long X, int K, int P[]) {
memset(ban, 0, sizeof(ban));
n = N, x = X, k = K;
s.clear();
for (int i = 0; i < k; ++i) {
ban[p[i]] = 1;
}
for (int i = 0; i < n; ++i) {
p[i] = P[i];
}
int bit = 59;
for (int i = 0; i < n; i += 3) {
if (bit < 0) {
for (int j = i; j < n; ++j) {
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |