Submission #801310

# Submission time Handle Problem Language Result Execution time Memory
801310 2023-08-02T05:32:52 Z phoenix Broken Device (JOI17_broken_device) C++17
0 / 100
36 ms 2664 KB
#include<bits/stdc++.h>
#include "Annalib.h"

using namespace std;

void Anna(int N, long long X, int K, int P[]) {
    vector<bool> bin;
    for(int i = 10; i >= 0; i--) {
        bin.push_back((X >> i & 1));
    }
    
    bool us[N] = {};
    for(int i = 0; i < K; i++) 
        us[P[i]] = 1;
    int lb = 0;
    for(int i = 0; i < N; i++) {
        if(lb == (int)bin.size() || us[i] || i == N - 1 || us[i + 1]) {
            Set(i, 0);
        } else {
            Set(i, 1);
            Set(i + 1, bin[lb++]);
            i++;
        }
    }
}
#include "Brunolib.h"

long long Bruno(int N, int A[] ){
    long long val = 0;
    int l = 0;
    while(l < N) {
        if(A[l]) {
            val = val * 2 + A[++l];
        }
        l++;
    }
    return val;
}
# Verdict Execution time Memory Grader output
1 Partially correct 36 ms 2460 KB Output isn't correct - L* = 0
2 Partially correct 27 ms 2520 KB Output isn't correct - L* = 0
3 Partially correct 24 ms 2572 KB Output isn't correct - L* = 0
4 Partially correct 25 ms 2520 KB Output isn't correct - L* = 0
5 Partially correct 28 ms 2620 KB Output isn't correct - L* = 0
6 Partially correct 34 ms 2544 KB Output isn't correct - L* = 0
7 Partially correct 26 ms 2652 KB Output isn't correct - L* = 0
8 Partially correct 30 ms 2512 KB Output isn't correct - L* = 0
9 Partially correct 32 ms 2576 KB Output isn't correct - L* = 0
10 Partially correct 25 ms 2664 KB Output isn't correct - L* = 0
11 Partially correct 30 ms 2568 KB Output isn't correct - L* = 0
12 Partially correct 25 ms 2660 KB Output isn't correct - L* = 0
13 Partially correct 31 ms 2468 KB Output isn't correct - L* = 0
14 Partially correct 30 ms 2472 KB Output isn't correct - L* = 0
15 Partially correct 27 ms 2588 KB Output isn't correct - L* = 0
16 Partially correct 27 ms 2528 KB Output isn't correct - L* = 0
17 Partially correct 28 ms 2612 KB Output isn't correct - L* = 0
18 Partially correct 28 ms 2452 KB Output isn't correct - L* = 0
19 Partially correct 26 ms 2572 KB Output isn't correct - L* = 0
20 Partially correct 30 ms 2548 KB Output isn't correct - L* = 0
21 Partially correct 30 ms 2500 KB Output isn't correct - L* = 0
22 Partially correct 31 ms 2516 KB Output isn't correct - L* = 0
23 Partially correct 30 ms 2540 KB Output isn't correct - L* = 0
24 Partially correct 31 ms 2552 KB Output isn't correct - L* = 0
25 Partially correct 31 ms 2520 KB Output isn't correct - L* = 0
26 Partially correct 27 ms 2564 KB Output isn't correct - L* = 0
27 Partially correct 25 ms 2480 KB Output isn't correct - L* = 0
28 Partially correct 28 ms 2596 KB Output isn't correct - L* = 0
29 Partially correct 28 ms 2472 KB Output isn't correct - L* = 0
30 Partially correct 28 ms 2592 KB Output isn't correct - L* = 0
31 Partially correct 26 ms 2544 KB Output isn't correct - L* = 0
32 Partially correct 35 ms 2576 KB Output isn't correct - L* = 0
33 Partially correct 25 ms 2468 KB Output isn't correct - L* = 0
34 Partially correct 27 ms 2436 KB Output isn't correct - L* = 0
35 Partially correct 23 ms 2652 KB Output isn't correct - L* = 0
36 Partially correct 24 ms 2632 KB Output isn't correct - L* = 0
37 Partially correct 32 ms 2484 KB Output isn't correct - L* = 0
38 Partially correct 27 ms 2480 KB Output isn't correct - L* = 0
39 Partially correct 36 ms 2448 KB Output isn't correct - L* = 0
40 Partially correct 32 ms 2496 KB Output isn't correct - L* = 0