Submission #1063170

# Submission time Handle Problem Language Result Execution time Memory
1063170 2024-08-17T14:49:44 Z Unforgettablepl Broken Device (JOI17_broken_device) C++17
0 / 100
1 ms 1052 KB
#include "Annalib.h"
#include <bits/stdc++.h>
using namespace std;

void Anna(int N, long long X, int K, int P[]){
    vector<bool> bad(N);
    for(int i=0;i<K;i++)bad[P[i]]=true;
    int bit = 0;
    for(int i=0;i<N;i++) {
        if(bad[i] or bit==60){Set(i,0);continue;}
        if(X&(1ll<<bit) and bad[i+1])continue;
        Set(i,1);
        Set(i+1,min(1ll,X&(1ll<<bit)));
        i++;bit++;
    }
}
#include "Brunolib.h"
#include <bits/stdc++.h>
using namespace std;

long long Bruno(int N, int A[]) {
    int bit = 0;
    long long X = 0;
    for(int i=0;i<N;i++) {
        if(A[i]==0 or bit==60)continue;
        if(A[i+1])X|=(1ll<<bit);
        i++;bit++;
    }
    return X;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 812 KB Wrong Answer [4]
2 Incorrect 1 ms 800 KB Wrong Answer [4]
3 Incorrect 0 ms 812 KB Wrong Answer [1]
4 Incorrect 0 ms 800 KB Wrong Answer [1]
5 Incorrect 1 ms 812 KB Wrong Answer [4]
6 Incorrect 0 ms 800 KB Wrong Answer [4]
7 Incorrect 1 ms 812 KB Wrong Answer [4]
8 Incorrect 0 ms 816 KB Wrong Answer [1]
9 Incorrect 0 ms 804 KB Wrong Answer [4]
10 Incorrect 1 ms 800 KB Wrong Answer [4]
11 Incorrect 1 ms 796 KB Wrong Answer [4]
12 Incorrect 1 ms 812 KB Wrong Answer [4]
13 Incorrect 0 ms 812 KB Wrong Answer [4]
14 Incorrect 0 ms 812 KB Wrong Answer [4]
15 Incorrect 0 ms 812 KB Wrong Answer [4]
16 Incorrect 0 ms 808 KB Wrong Answer [1]
17 Incorrect 0 ms 812 KB Wrong Answer [4]
18 Incorrect 1 ms 808 KB Wrong Answer [4]
19 Incorrect 0 ms 800 KB Wrong Answer [4]
20 Incorrect 1 ms 1052 KB Wrong Answer [4]
21 Incorrect 0 ms 812 KB Wrong Answer [1]
22 Incorrect 1 ms 812 KB Wrong Answer [4]
23 Incorrect 0 ms 800 KB Wrong Answer [4]
24 Incorrect 0 ms 808 KB Wrong Answer [4]
25 Incorrect 1 ms 796 KB Wrong Answer [1]
26 Incorrect 0 ms 800 KB Wrong Answer [1]
27 Incorrect 0 ms 800 KB Wrong Answer [4]
28 Incorrect 0 ms 812 KB Wrong Answer [1]
29 Incorrect 0 ms 812 KB Wrong Answer [1]
30 Incorrect 0 ms 812 KB Wrong Answer [4]
31 Incorrect 0 ms 800 KB Wrong Answer [1]
32 Incorrect 1 ms 812 KB Wrong Answer [4]
33 Incorrect 0 ms 796 KB Wrong Answer [4]
34 Incorrect 1 ms 808 KB Wrong Answer [1]
35 Incorrect 1 ms 800 KB Wrong Answer [1]
36 Incorrect 0 ms 812 KB Wrong Answer [1]
37 Incorrect 1 ms 812 KB Wrong Answer [4]
38 Incorrect 0 ms 812 KB Wrong Answer [1]
39 Incorrect 1 ms 812 KB Wrong Answer [4]
40 Incorrect 0 ms 800 KB Wrong Answer [1]