답안 #260300

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
260300 2020-08-10T04:36:10 Z 반딧불(#5056) Broken Device (JOI17_broken_device) C++14
8 / 100
56 ms 3328 KB
#include <bits/stdc++.h>
#include "Annalib.h"

using namespace std;

typedef long long ll;

namespace A{
    int n, k;
    ll x;
    ll arr[152];
};
using namespace A;

void Anna(int N, ll X, int K, int P[]){
    n = N, k = K, x = X;
    for(int i=0; i<N; i++){
        arr[i] = i % 60;
        Set(i, !!(x & (1LL<<arr[i])));
    }
}
#include <bits/stdc++.h>
#include "Brunolib.h"

using namespace std;

typedef long long ll;

namespace B{
    int n;
    ll arr[152];
};
using namespace B;

ll Bruno(int N, int A[]){
    n = N;
    for(int i=0; i<n; i++) arr[i] = i%60;

    ll ret = 0;
    for(int i=0; i<n; i++){
        if(A[i]) ret |= (1LL<<arr[i]);
    }
    return ret;
}
# 결과 실행 시간 메모리 Grader output
1 Partially correct 44 ms 3072 KB Output is partially correct - L* = 15
2 Partially correct 44 ms 3072 KB Output is partially correct - L* = 16
3 Partially correct 43 ms 3072 KB Output is partially correct - L* = 14
4 Partially correct 45 ms 3072 KB Output is partially correct - L* = 14
5 Partially correct 44 ms 3056 KB Output is partially correct - L* = 15
6 Partially correct 44 ms 3056 KB Output is partially correct - L* = 14
7 Partially correct 44 ms 3072 KB Output is partially correct - L* = 15
8 Partially correct 43 ms 3072 KB Output is partially correct - L* = 15
9 Partially correct 45 ms 3056 KB Output is partially correct - L* = 14
10 Partially correct 44 ms 3328 KB Output is partially correct - L* = 15
11 Partially correct 49 ms 3328 KB Output is partially correct - L* = 14
12 Partially correct 56 ms 3056 KB Output is partially correct - L* = 15
13 Partially correct 50 ms 3056 KB Output is partially correct - L* = 15
14 Partially correct 46 ms 3328 KB Output is partially correct - L* = 14
15 Partially correct 47 ms 3072 KB Output is partially correct - L* = 14
16 Partially correct 47 ms 3072 KB Output is partially correct - L* = 14
17 Partially correct 45 ms 3072 KB Output is partially correct - L* = 15
18 Partially correct 46 ms 3072 KB Output is partially correct - L* = 14
19 Partially correct 44 ms 3072 KB Output is partially correct - L* = 14
20 Partially correct 48 ms 3072 KB Output is partially correct - L* = 14
21 Partially correct 48 ms 3072 KB Output is partially correct - L* = 14
22 Partially correct 47 ms 3072 KB Output is partially correct - L* = 15
23 Partially correct 45 ms 3072 KB Output is partially correct - L* = 14
24 Partially correct 43 ms 3064 KB Output is partially correct - L* = 14
25 Partially correct 44 ms 3072 KB Output is partially correct - L* = 15
26 Partially correct 44 ms 3056 KB Output is partially correct - L* = 14
27 Partially correct 44 ms 3072 KB Output is partially correct - L* = 14
28 Partially correct 44 ms 3072 KB Output is partially correct - L* = 15
29 Partially correct 44 ms 3328 KB Output is partially correct - L* = 14
30 Partially correct 44 ms 3072 KB Output is partially correct - L* = 14
31 Partially correct 44 ms 3072 KB Output is partially correct - L* = 14
32 Partially correct 45 ms 3072 KB Output is partially correct - L* = 14
33 Partially correct 44 ms 3072 KB Output is partially correct - L* = 14
34 Partially correct 47 ms 3072 KB Output is partially correct - L* = 14
35 Partially correct 44 ms 3072 KB Output is partially correct - L* = 15
36 Partially correct 44 ms 3072 KB Output is partially correct - L* = 14
37 Partially correct 44 ms 3072 KB Output is partially correct - L* = 16
38 Partially correct 44 ms 3072 KB Output is partially correct - L* = 14
39 Partially correct 50 ms 3072 KB Output is partially correct - L* = 14
40 Partially correct 46 ms 3056 KB Output is partially correct - L* = 15