Submission #106667

# Submission time Handle Problem Language Result Execution time Memory
106667 2019-04-19T14:27:38 Z thebes Broken Device (JOI17_broken_device) C++14
0 / 100
8 ms 1020 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);
        }
        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;
}
# Verdict Execution time Memory Grader output
1 Incorrect 5 ms 640 KB Wrong Answer [2]
2 Incorrect 4 ms 904 KB Wrong Answer [2]
3 Incorrect 5 ms 860 KB Wrong Answer [2]
4 Incorrect 4 ms 644 KB Wrong Answer [2]
5 Incorrect 6 ms 676 KB Wrong Answer [2]
6 Incorrect 4 ms 684 KB Wrong Answer [2]
7 Incorrect 4 ms 896 KB Wrong Answer [2]
8 Incorrect 4 ms 864 KB Wrong Answer [2]
9 Incorrect 5 ms 776 KB Wrong Answer [2]
10 Incorrect 3 ms 768 KB Wrong Answer [2]
11 Incorrect 8 ms 768 KB Wrong Answer [2]
12 Incorrect 5 ms 640 KB Wrong Answer [2]
13 Incorrect 5 ms 640 KB Wrong Answer [2]
14 Incorrect 5 ms 640 KB Wrong Answer [2]
15 Incorrect 6 ms 768 KB Wrong Answer [2]
16 Incorrect 6 ms 640 KB Wrong Answer [2]
17 Incorrect 3 ms 856 KB Wrong Answer [2]
18 Incorrect 4 ms 724 KB Wrong Answer [2]
19 Incorrect 6 ms 768 KB Wrong Answer [2]
20 Incorrect 4 ms 768 KB Wrong Answer [2]
21 Incorrect 5 ms 640 KB Wrong Answer [2]
22 Incorrect 5 ms 776 KB Wrong Answer [2]
23 Incorrect 5 ms 640 KB Wrong Answer [2]
24 Incorrect 4 ms 640 KB Wrong Answer [2]
25 Incorrect 4 ms 768 KB Wrong Answer [2]
26 Incorrect 4 ms 748 KB Wrong Answer [2]
27 Incorrect 5 ms 640 KB Wrong Answer [2]
28 Incorrect 5 ms 768 KB Wrong Answer [2]
29 Incorrect 4 ms 768 KB Wrong Answer [2]
30 Incorrect 4 ms 640 KB Wrong Answer [2]
31 Incorrect 7 ms 640 KB Wrong Answer [2]
32 Incorrect 6 ms 1020 KB Wrong Answer [2]
33 Incorrect 4 ms 768 KB Wrong Answer [2]
34 Incorrect 5 ms 868 KB Wrong Answer [2]
35 Incorrect 4 ms 640 KB Wrong Answer [2]
36 Incorrect 5 ms 640 KB Wrong Answer [2]
37 Incorrect 4 ms 640 KB Wrong Answer [2]
38 Incorrect 5 ms 768 KB Wrong Answer [2]
39 Incorrect 5 ms 640 KB Wrong Answer [2]
40 Incorrect 4 ms 640 KB Wrong Answer [2]