답안 #106666

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
106666 2019-04-19T14:04:53 Z thebes Broken Device (JOI17_broken_device) C++14
0 / 100
67 ms 3328 KB
#include "Annalib.h"
#include <bits/stdc++.h>
using namespace std;

int lol[200], i, j;
void Anna(int N, long long X, int K, int *P){
    memset(lol, 0, sizeof(lol));
    for(i=0;i<K;i++) lol[P[i]]=1;
    j = 60;
    for(i=0;i<150;i+=2){
        if((1LL<<j)&X){
            if(!lol[i]){
                Set(i, 1);
                Set(i+1, 0);
                j--;
            }
            else{
                Set(i, 0);
                Set(i+1, 0);
            }
        }
        else{
            if(!lol[i+1]){
                Set(i, 0);
                Set(i+1, 1);
                j--;
            }
            else{
                Set(i, 0);
                Set(i+1, 0);
            }
        }
    }
}
#include "Brunolib.h"
#include <bits/stdc++.h>
using namespace std;

long long Bruno(int N, int *A){
    long long ans = 0;
    int j = 60;
    for(int i=0;i<150;i+=2){
        if(A[i]!=A[i+1]){
            if(A[i]==1) ans += (1LL<<j);
            j--;
        }
    }
    return ans;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 41 ms 3072 KB Output isn't correct - L* = 0
2 Incorrect 51 ms 3056 KB Output isn't correct - L* = 0
3 Incorrect 40 ms 3056 KB Output isn't correct - L* = 0
4 Incorrect 43 ms 3328 KB Output isn't correct - L* = 0
5 Incorrect 61 ms 3072 KB Output isn't correct - L* = 0
6 Incorrect 44 ms 3072 KB Output isn't correct - L* = 0
7 Incorrect 40 ms 3192 KB Output isn't correct - L* = 0
8 Incorrect 38 ms 3072 KB Output isn't correct - L* = 0
9 Incorrect 41 ms 3072 KB Output isn't correct - L* = 0
10 Incorrect 48 ms 3328 KB Output isn't correct - L* = 0
11 Incorrect 53 ms 3256 KB Output isn't correct - L* = 0
12 Incorrect 51 ms 3056 KB Output isn't correct - L* = 0
13 Incorrect 53 ms 3168 KB Output isn't correct - L* = 0
14 Incorrect 47 ms 3072 KB Output isn't correct - L* = 0
15 Incorrect 41 ms 3176 KB Output isn't correct - L* = 0
16 Incorrect 67 ms 3256 KB Output isn't correct - L* = 0
17 Incorrect 56 ms 3056 KB Output isn't correct - L* = 0
18 Incorrect 66 ms 3208 KB Output isn't correct - L* = 0
19 Incorrect 53 ms 3256 KB Output isn't correct - L* = 0
20 Incorrect 40 ms 3256 KB Output isn't correct - L* = 0
21 Incorrect 52 ms 3312 KB Output isn't correct - L* = 0
22 Incorrect 53 ms 3056 KB Output isn't correct - L* = 0
23 Incorrect 60 ms 3056 KB Output isn't correct - L* = 0
24 Incorrect 66 ms 3056 KB Output isn't correct - L* = 0
25 Incorrect 55 ms 3072 KB Output isn't correct - L* = 0
26 Incorrect 50 ms 3256 KB Output isn't correct - L* = 0
27 Incorrect 44 ms 3256 KB Output isn't correct - L* = 0
28 Incorrect 50 ms 3072 KB Output isn't correct - L* = 0
29 Incorrect 44 ms 3056 KB Output isn't correct - L* = 0
30 Incorrect 40 ms 3312 KB Output isn't correct - L* = 0
31 Incorrect 51 ms 3056 KB Output isn't correct - L* = 0
32 Incorrect 45 ms 3072 KB Output isn't correct - L* = 0
33 Incorrect 46 ms 3072 KB Output isn't correct - L* = 0
34 Incorrect 49 ms 3072 KB Output isn't correct - L* = 0
35 Incorrect 65 ms 3056 KB Output isn't correct - L* = 0
36 Incorrect 50 ms 3072 KB Output isn't correct - L* = 0
37 Incorrect 44 ms 3056 KB Output isn't correct - L* = 0
38 Incorrect 64 ms 3056 KB Output isn't correct - L* = 0
39 Incorrect 55 ms 3072 KB Output isn't correct - L* = 0
40 Incorrect 49 ms 3056 KB Output isn't correct - L* = 0