답안 #106665

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
106665 2019-04-19T14:03:07 Z thebes Broken Device (JOI17_broken_device) C++14
0 / 100
7 ms 920 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{
            if(!lol[i+1]){
                Set(i, 0);
                Set(i+1, 1);
                j--;
            }
        }
    }
}

#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 5 ms 784 KB Wrong Answer [4]
2 Incorrect 4 ms 868 KB Wrong Answer [4]
3 Incorrect 4 ms 784 KB Wrong Answer [4]
4 Incorrect 4 ms 920 KB Wrong Answer [4]
5 Incorrect 5 ms 920 KB Wrong Answer [4]
6 Incorrect 5 ms 784 KB Wrong Answer [4]
7 Incorrect 4 ms 868 KB Wrong Answer [4]
8 Incorrect 5 ms 784 KB Wrong Answer [4]
9 Incorrect 4 ms 784 KB Wrong Answer [4]
10 Incorrect 4 ms 792 KB Wrong Answer [4]
11 Incorrect 4 ms 784 KB Wrong Answer [4]
12 Incorrect 4 ms 792 KB Wrong Answer [4]
13 Incorrect 7 ms 920 KB Wrong Answer [4]
14 Incorrect 4 ms 784 KB Wrong Answer [4]
15 Incorrect 5 ms 792 KB Wrong Answer [4]
16 Incorrect 6 ms 912 KB Wrong Answer [4]
17 Incorrect 6 ms 868 KB Wrong Answer [4]
18 Incorrect 5 ms 688 KB Wrong Answer [4]
19 Incorrect 5 ms 784 KB Wrong Answer [4]
20 Incorrect 5 ms 784 KB Wrong Answer [4]
21 Incorrect 4 ms 784 KB Wrong Answer [4]
22 Incorrect 4 ms 784 KB Wrong Answer [4]
23 Incorrect 4 ms 872 KB Wrong Answer [4]
24 Incorrect 4 ms 776 KB Wrong Answer [4]
25 Incorrect 4 ms 912 KB Wrong Answer [4]
26 Incorrect 4 ms 788 KB Wrong Answer [4]
27 Incorrect 4 ms 784 KB Wrong Answer [4]
28 Incorrect 4 ms 784 KB Wrong Answer [4]
29 Incorrect 4 ms 912 KB Wrong Answer [4]
30 Incorrect 5 ms 792 KB Wrong Answer [4]
31 Incorrect 4 ms 784 KB Wrong Answer [4]
32 Incorrect 5 ms 792 KB Wrong Answer [4]
33 Incorrect 4 ms 784 KB Wrong Answer [4]
34 Incorrect 4 ms 784 KB Wrong Answer [4]
35 Incorrect 4 ms 784 KB Wrong Answer [4]
36 Incorrect 5 ms 784 KB Wrong Answer [4]
37 Incorrect 5 ms 784 KB Wrong Answer [4]
38 Incorrect 5 ms 784 KB Wrong Answer [4]
39 Incorrect 5 ms 784 KB Wrong Answer [4]
40 Incorrect 4 ms 872 KB Wrong Answer [4]