Submission #1063181

# Submission time Handle Problem Language Result Execution time Memory
1063181 2024-08-17T14:55:07 Z Unforgettablepl Broken Device (JOI17_broken_device) C++17
41 / 100
27 ms 2860 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+1);
    for(int i=0;i<K;i++)bad[P[i]]=true;
    int bit = 0;
    bad[N]=true;
    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]){Set(i,0);continue;}
        Set(i,1);
        if(i!=N-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;
    vector<int> arr(N+1);
    for(int i=0;i<N;i++)arr[i]=A[i];
    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 Partially correct 20 ms 2768 KB Output is partially correct - L* = 17
2 Partially correct 20 ms 2764 KB Output is partially correct - L* = 16
3 Partially correct 20 ms 2756 KB Output is partially correct - L* = 16
4 Partially correct 20 ms 2752 KB Output is partially correct - L* = 16
5 Partially correct 20 ms 2756 KB Output is partially correct - L* = 15
6 Partially correct 20 ms 2760 KB Output is partially correct - L* = 17
7 Partially correct 20 ms 2848 KB Output is partially correct - L* = 18
8 Partially correct 20 ms 2752 KB Output is partially correct - L* = 16
9 Partially correct 22 ms 2748 KB Output is partially correct - L* = 18
10 Partially correct 20 ms 2608 KB Output is partially correct - L* = 15
11 Partially correct 20 ms 2760 KB Output is partially correct - L* = 17
12 Partially correct 20 ms 2768 KB Output is partially correct - L* = 16
13 Partially correct 20 ms 2756 KB Output is partially correct - L* = 15
14 Partially correct 20 ms 2728 KB Output is partially correct - L* = 15
15 Partially correct 24 ms 2760 KB Output is partially correct - L* = 16
16 Partially correct 20 ms 2844 KB Output is partially correct - L* = 17
17 Partially correct 20 ms 2764 KB Output is partially correct - L* = 17
18 Partially correct 22 ms 2764 KB Output is partially correct - L* = 16
19 Partially correct 20 ms 2756 KB Output is partially correct - L* = 18
20 Partially correct 20 ms 2640 KB Output is partially correct - L* = 15
21 Partially correct 20 ms 2752 KB Output is partially correct - L* = 17
22 Partially correct 24 ms 2812 KB Output is partially correct - L* = 16
23 Partially correct 20 ms 2760 KB Output is partially correct - L* = 15
24 Partially correct 22 ms 2760 KB Output is partially correct - L* = 16
25 Partially correct 22 ms 2760 KB Output is partially correct - L* = 16
26 Partially correct 20 ms 2860 KB Output is partially correct - L* = 16
27 Partially correct 20 ms 2672 KB Output is partially correct - L* = 16
28 Partially correct 20 ms 2752 KB Output is partially correct - L* = 15
29 Partially correct 20 ms 2756 KB Output is partially correct - L* = 16
30 Partially correct 23 ms 2760 KB Output is partially correct - L* = 20
31 Partially correct 22 ms 2756 KB Output is partially correct - L* = 17
32 Partially correct 22 ms 2756 KB Output is partially correct - L* = 18
33 Partially correct 22 ms 2756 KB Output is partially correct - L* = 17
34 Partially correct 27 ms 2844 KB Output is partially correct - L* = 16
35 Partially correct 24 ms 2760 KB Output is partially correct - L* = 15
36 Partially correct 20 ms 2756 KB Output is partially correct - L* = 15
37 Partially correct 20 ms 2604 KB Output is partially correct - L* = 16
38 Partially correct 20 ms 2844 KB Output is partially correct - L* = 18
39 Partially correct 20 ms 2648 KB Output is partially correct - L* = 15
40 Partially correct 20 ms 2764 KB Output is partially correct - L* = 15