# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
26860 | wangyenjen | Broken Device (JOI17_broken_device) | C++14 | 68 ms | 4640 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.
/// Author: Wang, Yen-Jen
#include "Annalib.h"
#include <bits/stdc++.h>
using namespace std;
static bool A[150];
static bool B[150];
static int cnt[50];
static bool st[150];
inline static void my_set(int p , int a , int b , int c) {
B[p * 3] = a;
B[p * 3 + 1] = b;
B[p * 3 + 2] = c;
}
void Anna(int N , long long X , int K , int P[]) {
memset(st , 0 , sizeof(st));
memset(cnt , 0 , sizeof(cnt));
for(int i = 0; i < K; i++) {
st[P[i]] = 1;
cnt[P[i] / 3]++;
}
memset(A , 0 , sizeof(A));
for(int i = 0; i < 60; i++) {
A[i] = (X&1);
X >>= 1;
}
int cc = 0;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |