답안 #106669

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
106669 2019-04-19T14:28:44 Z thebes Broken Device (JOI17_broken_device) C++14
8 / 100
68 ms 3144 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<N;i+=2){
        if(j<0){
            Set(i, 0);
            Set(i+1, 0);
          	continue;
        }
        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<N;i+=2){
        if(A[i]!=A[i+1]&&j>=0){
            if(A[i]==1) ans += (1LL<<j);
            j--;
        }
    }
    return ans;
}
# 결과 실행 시간 메모리 Grader output
1 Partially correct 55 ms 3056 KB Output is partially correct - L* = 15
2 Partially correct 50 ms 3064 KB Output is partially correct - L* = 16
3 Partially correct 68 ms 3056 KB Output is partially correct - L* = 16
4 Partially correct 65 ms 3056 KB Output is partially correct - L* = 14
5 Partially correct 56 ms 2832 KB Output is partially correct - L* = 15
6 Partially correct 54 ms 2856 KB Output is partially correct - L* = 15
7 Partially correct 41 ms 3024 KB Output is partially correct - L* = 18
8 Partially correct 46 ms 3008 KB Output is partially correct - L* = 15
9 Partially correct 47 ms 3056 KB Output is partially correct - L* = 18
10 Partially correct 57 ms 3000 KB Output is partially correct - L* = 14
11 Partially correct 45 ms 3056 KB Output is partially correct - L* = 17
12 Partially correct 54 ms 3000 KB Output is partially correct - L* = 14
13 Partially correct 54 ms 3000 KB Output is partially correct - L* = 15
14 Partially correct 66 ms 3000 KB Output is partially correct - L* = 15
15 Partially correct 53 ms 3056 KB Output is partially correct - L* = 16
16 Partially correct 36 ms 3056 KB Output is partially correct - L* = 17
17 Partially correct 59 ms 3000 KB Output is partially correct - L* = 22
18 Partially correct 43 ms 2896 KB Output is partially correct - L* = 16
19 Partially correct 48 ms 3056 KB Output is partially correct - L* = 18
20 Partially correct 49 ms 3016 KB Output is partially correct - L* = 18
21 Partially correct 37 ms 3056 KB Output is partially correct - L* = 15
22 Partially correct 36 ms 3072 KB Output is partially correct - L* = 16
23 Partially correct 43 ms 3144 KB Output is partially correct - L* = 17
24 Partially correct 56 ms 3032 KB Output is partially correct - L* = 16
25 Partially correct 56 ms 3000 KB Output is partially correct - L* = 14
26 Partially correct 51 ms 2960 KB Output is partially correct - L* = 16
27 Partially correct 34 ms 3008 KB Output is partially correct - L* = 14
28 Partially correct 35 ms 3072 KB Output is partially correct - L* = 15
29 Partially correct 47 ms 2840 KB Output is partially correct - L* = 16
30 Partially correct 46 ms 3016 KB Output is partially correct - L* = 21
31 Partially correct 43 ms 3056 KB Output is partially correct - L* = 15
32 Partially correct 35 ms 3072 KB Output is partially correct - L* = 18
33 Partially correct 40 ms 3088 KB Output is partially correct - L* = 17
34 Partially correct 50 ms 2944 KB Output is partially correct - L* = 14
35 Partially correct 43 ms 3056 KB Output is partially correct - L* = 15
36 Partially correct 41 ms 2920 KB Output is partially correct - L* = 15
37 Partially correct 41 ms 2896 KB Output is partially correct - L* = 16
38 Partially correct 51 ms 3056 KB Output is partially correct - L* = 18
39 Partially correct 56 ms 3056 KB Output is partially correct - L* = 15
40 Partially correct 42 ms 2856 KB Output is partially correct - L* = 14