# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
21016 | model_code | Broken Device (JOI17_broken_device) | C++11 | 59 ms | 2840 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 "Annalib.h"
#include <cstdio>
static bool used[150];
static int cnt[150];
static int dat[150];
static int it;
static int ans[150];
void set_block( int i, int a, int b, int c ){
ans[i*3+0] = a;
ans[i*3+1] = b;
ans[i*3+2] = c;
}
void Anna( int N, long long X, int K, int P[] ){
it = 0;
for( int i = 0; i < N; i++ ){
used[i] = false;
cnt[i] = dat[i] = ans[i] = 0;
}
for( int i = 0; i < 60; i++ ){
dat[i] = X % 2;
X /= 2;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |