답안 #260299

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
260299 2020-08-10T04:35:07 Z 반딧불(#5056) Broken Device (JOI17_broken_device) C++14
0 / 100
65 ms 5528 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])));
        printf("%d: %lld\n", i, 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 Incorrect 47 ms 5104 KB Program terminated incorrectly, or you printed something to stdout
2 Incorrect 54 ms 5360 KB Program terminated incorrectly, or you printed something to stdout
3 Incorrect 47 ms 5104 KB Program terminated incorrectly, or you printed something to stdout
4 Incorrect 48 ms 5104 KB Program terminated incorrectly, or you printed something to stdout
5 Incorrect 47 ms 5040 KB Program terminated incorrectly, or you printed something to stdout
6 Incorrect 46 ms 5104 KB Program terminated incorrectly, or you printed something to stdout
7 Incorrect 47 ms 5112 KB Program terminated incorrectly, or you printed something to stdout
8 Incorrect 47 ms 5112 KB Program terminated incorrectly, or you printed something to stdout
9 Incorrect 51 ms 5088 KB Program terminated incorrectly, or you printed something to stdout
10 Incorrect 51 ms 5360 KB Program terminated incorrectly, or you printed something to stdout
11 Incorrect 48 ms 5104 KB Program terminated incorrectly, or you printed something to stdout
12 Incorrect 47 ms 5104 KB Program terminated incorrectly, or you printed something to stdout
13 Incorrect 47 ms 5104 KB Program terminated incorrectly, or you printed something to stdout
14 Incorrect 47 ms 5104 KB Program terminated incorrectly, or you printed something to stdout
15 Incorrect 49 ms 5104 KB Program terminated incorrectly, or you printed something to stdout
16 Incorrect 47 ms 5104 KB Program terminated incorrectly, or you printed something to stdout
17 Incorrect 57 ms 5104 KB Program terminated incorrectly, or you printed something to stdout
18 Incorrect 47 ms 5176 KB Program terminated incorrectly, or you printed something to stdout
19 Incorrect 65 ms 5104 KB Program terminated incorrectly, or you printed something to stdout
20 Incorrect 55 ms 5448 KB Program terminated incorrectly, or you printed something to stdout
21 Incorrect 55 ms 5136 KB Program terminated incorrectly, or you printed something to stdout
22 Incorrect 49 ms 5104 KB Program terminated incorrectly, or you printed something to stdout
23 Incorrect 46 ms 5104 KB Program terminated incorrectly, or you printed something to stdout
24 Incorrect 56 ms 5056 KB Program terminated incorrectly, or you printed something to stdout
25 Incorrect 47 ms 5104 KB Program terminated incorrectly, or you printed something to stdout
26 Incorrect 48 ms 5104 KB Program terminated incorrectly, or you printed something to stdout
27 Incorrect 51 ms 5104 KB Program terminated incorrectly, or you printed something to stdout
28 Incorrect 47 ms 5104 KB Program terminated incorrectly, or you printed something to stdout
29 Incorrect 48 ms 5104 KB Program terminated incorrectly, or you printed something to stdout
30 Incorrect 47 ms 5104 KB Program terminated incorrectly, or you printed something to stdout
31 Incorrect 47 ms 5104 KB Program terminated incorrectly, or you printed something to stdout
32 Incorrect 49 ms 5360 KB Program terminated incorrectly, or you printed something to stdout
33 Incorrect 47 ms 5104 KB Program terminated incorrectly, or you printed something to stdout
34 Incorrect 49 ms 5104 KB Program terminated incorrectly, or you printed something to stdout
35 Incorrect 49 ms 5104 KB Program terminated incorrectly, or you printed something to stdout
36 Incorrect 47 ms 5184 KB Program terminated incorrectly, or you printed something to stdout
37 Incorrect 48 ms 5104 KB Program terminated incorrectly, or you printed something to stdout
38 Incorrect 48 ms 5272 KB Program terminated incorrectly, or you printed something to stdout
39 Incorrect 51 ms 5104 KB Program terminated incorrectly, or you printed something to stdout
40 Incorrect 47 ms 5528 KB Program terminated incorrectly, or you printed something to stdout