답안 #974392

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
974392 2024-05-03T09:36:45 Z 12345678 Broken Device (JOI17_broken_device) C++17
41 / 100
33 ms 3060 KB
#include "Annalib.h"
#include <bits/stdc++.h>

using namespace std;

const int nx=150;

void Anna( int N, long long X, int K, int P[] ){
    vector<int> b(nx);
    for (int i=0; i<K; i++) b[P[i]]=1;
    for (int i=0; i<75; i++)
    {
        if (b[2*i]||b[2*i+1]) Set(2*i, 0), Set(2*i+1, 0);
        else Set(2*i, 1), Set(2*i+1, X%2), X/=2;
    }
}
#include "Brunolib.h"
#include <bits/stdc++.h>

using namespace std;

#define ll long long

const int kx=65;

long long Bruno( int N, int A[] ){
    vector<ll> p(kx);
    ll res=0, cnt=0;
    p[0]=1;
    for (int i=1; i<kx; i++) p[i]=p[i-1]*2;
    for (int i=0; i<75; i++) if (A[2*i]) res+=p[cnt]*A[2*i+1], cnt++; 
    return res;
}
# 결과 실행 시간 메모리 Grader output
1 Partially correct 27 ms 2772 KB Output is partially correct - L* = 15
2 Partially correct 27 ms 2852 KB Output is partially correct - L* = 15
3 Partially correct 25 ms 2884 KB Output is partially correct - L* = 16
4 Partially correct 28 ms 2696 KB Output is partially correct - L* = 15
5 Partially correct 26 ms 3060 KB Output is partially correct - L* = 15
6 Partially correct 25 ms 2776 KB Output is partially correct - L* = 15
7 Partially correct 25 ms 2888 KB Output is partially correct - L* = 15
8 Partially correct 25 ms 2752 KB Output is partially correct - L* = 15
9 Partially correct 25 ms 2864 KB Output is partially correct - L* = 16
10 Partially correct 33 ms 2704 KB Output is partially correct - L* = 16
11 Partially correct 25 ms 2748 KB Output is partially correct - L* = 15
12 Partially correct 26 ms 2716 KB Output is partially correct - L* = 16
13 Partially correct 25 ms 2772 KB Output is partially correct - L* = 15
14 Partially correct 27 ms 2780 KB Output is partially correct - L* = 15
15 Partially correct 25 ms 2688 KB Output is partially correct - L* = 15
16 Partially correct 25 ms 2784 KB Output is partially correct - L* = 15
17 Partially correct 32 ms 2848 KB Output is partially correct - L* = 15
18 Partially correct 25 ms 2724 KB Output is partially correct - L* = 15
19 Partially correct 25 ms 2956 KB Output is partially correct - L* = 16
20 Partially correct 26 ms 2704 KB Output is partially correct - L* = 15
21 Partially correct 25 ms 2752 KB Output is partially correct - L* = 15
22 Partially correct 27 ms 2840 KB Output is partially correct - L* = 15
23 Partially correct 28 ms 2652 KB Output is partially correct - L* = 15
24 Partially correct 25 ms 2892 KB Output is partially correct - L* = 15
25 Partially correct 26 ms 2820 KB Output is partially correct - L* = 15
26 Partially correct 25 ms 2640 KB Output is partially correct - L* = 15
27 Partially correct 27 ms 2780 KB Output is partially correct - L* = 15
28 Partially correct 25 ms 3028 KB Output is partially correct - L* = 15
29 Partially correct 27 ms 2664 KB Output is partially correct - L* = 15
30 Partially correct 25 ms 2984 KB Output is partially correct - L* = 15
31 Partially correct 31 ms 2772 KB Output is partially correct - L* = 15
32 Partially correct 30 ms 2784 KB Output is partially correct - L* = 16
33 Partially correct 27 ms 2680 KB Output is partially correct - L* = 15
34 Partially correct 27 ms 2776 KB Output is partially correct - L* = 15
35 Partially correct 28 ms 2672 KB Output is partially correct - L* = 15
36 Partially correct 33 ms 2860 KB Output is partially correct - L* = 15
37 Partially correct 25 ms 2788 KB Output is partially correct - L* = 16
38 Partially correct 25 ms 2848 KB Output is partially correct - L* = 15
39 Partially correct 31 ms 2776 KB Output is partially correct - L* = 15
40 Partially correct 27 ms 2864 KB Output is partially correct - L* = 15