답안 #1074723

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1074723 2024-08-25T13:18:10 Z thinknoexit Broken Device (JOI17_broken_device) C++17
41 / 100
27 ms 3360 KB
#include "Annalib.h"
#include<bits/stdc++.h>
using namespace std;
using ll = long long;
namespace {
    int n;
    bool ch[155];
}
void Anna(int N, ll x, int K, int P[]) {
    n = N;
    for (int i = 0;i < n;i++) ch[i] = 1;
    for (int i = 0;i < K;i++) ch[P[i]] = 0;
    ll now = 59;
    for (int i = 0;i < n;i++) {
        if (now == -1) {
            Set(i, 0);
            continue;
        }
        if (ch[i] && ch[i + 1]) {
            Set(i, 1);
            Set(i + 1, (x >> (now--)) & 1ll);
            i++;
        }
        else Set(i, 0);
    }
}
#include "Brunolib.h"
#include<bits/stdc++.h>
using namespace std;
using ll = long long;
int n;
ll Bruno(int N, int A[]) {
    ll res = 0;
    n = N;
    for (int i = 0;i < n;i++) {
        if (A[i] == 1) {
            res = (res << 1ll) | A[i + 1];
            i++;
        }
    }
    return res;
}
# 결과 실행 시간 메모리 Grader output
1 Partially correct 24 ms 2860 KB Output is partially correct - L* = 15
2 Partially correct 20 ms 2848 KB Output is partially correct - L* = 15
3 Partially correct 20 ms 2844 KB Output is partially correct - L* = 16
4 Partially correct 20 ms 2800 KB Output is partially correct - L* = 15
5 Partially correct 20 ms 2772 KB Output is partially correct - L* = 15
6 Partially correct 20 ms 2776 KB Output is partially correct - L* = 15
7 Partially correct 20 ms 2816 KB Output is partially correct - L* = 15
8 Partially correct 20 ms 2776 KB Output is partially correct - L* = 15
9 Partially correct 20 ms 2776 KB Output is partially correct - L* = 16
10 Partially correct 20 ms 2892 KB Output is partially correct - L* = 15
11 Partially correct 20 ms 2776 KB Output is partially correct - L* = 16
12 Partially correct 20 ms 2780 KB Output is partially correct - L* = 15
13 Partially correct 20 ms 2772 KB Output is partially correct - L* = 15
14 Partially correct 20 ms 2692 KB Output is partially correct - L* = 15
15 Partially correct 20 ms 2780 KB Output is partially correct - L* = 15
16 Partially correct 20 ms 2856 KB Output is partially correct - L* = 15
17 Partially correct 20 ms 2780 KB Output is partially correct - L* = 17
18 Partially correct 20 ms 2792 KB Output is partially correct - L* = 16
19 Partially correct 20 ms 2776 KB Output is partially correct - L* = 18
20 Partially correct 20 ms 2772 KB Output is partially correct - L* = 15
21 Partially correct 20 ms 2848 KB Output is partially correct - L* = 15
22 Partially correct 23 ms 2900 KB Output is partially correct - L* = 15
23 Partially correct 25 ms 2752 KB Output is partially correct - L* = 15
24 Partially correct 20 ms 2776 KB Output is partially correct - L* = 16
25 Partially correct 20 ms 2776 KB Output is partially correct - L* = 15
26 Partially correct 20 ms 2772 KB Output is partially correct - L* = 16
27 Partially correct 20 ms 2776 KB Output is partially correct - L* = 15
28 Partially correct 20 ms 2768 KB Output is partially correct - L* = 15
29 Partially correct 20 ms 2868 KB Output is partially correct - L* = 15
30 Partially correct 20 ms 2780 KB Output is partially correct - L* = 15
31 Partially correct 20 ms 2824 KB Output is partially correct - L* = 15
32 Partially correct 20 ms 2772 KB Output is partially correct - L* = 15
33 Partially correct 27 ms 2732 KB Output is partially correct - L* = 15
34 Partially correct 20 ms 2768 KB Output is partially correct - L* = 15
35 Partially correct 20 ms 3360 KB Output is partially correct - L* = 15
36 Partially correct 20 ms 2872 KB Output is partially correct - L* = 15
37 Partially correct 20 ms 2864 KB Output is partially correct - L* = 16
38 Partially correct 25 ms 3008 KB Output is partially correct - L* = 17
39 Partially correct 20 ms 2876 KB Output is partially correct - L* = 15
40 Partially correct 20 ms 2856 KB Output is partially correct - L* = 15