Submission #100048

# Submission time Handle Problem Language Result Execution time Memory
100048 2019-03-09T07:32:19 Z errorgorn Broken Device (JOI17_broken_device) C++14
0 / 100
76 ms 3072 KB
#include "Annalib.h"

void Anna( int N, long long X, int K, int P[] ){
  for (int x=0;x<61;x++){
    if ((X&1)==1){
        Set(x<<1,1);
        Set( (x<<1)+1,1);
    }
    else{
        Set(x<<1,0);
        Set( (x<<1) +1,0);
    }
    X>>=1;
  }
  for (int x=122;x<N;x++) Set(x,0);
}
#include "Brunolib.h"

long long Bruno( int N, int A[] ){
  long long ans=0;
  for (int x=60;x>=0;x--){
    ans+=A[x<<1]|A[(x<<1)+1];
    ans<<=1;
  }
}

Compilation message

Bruno.cpp: In function 'long long int Bruno(int, int*)':
Bruno.cpp:9:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
# Verdict Execution time Memory Grader output
1 Incorrect 42 ms 2816 KB Output isn't correct - L* = 0
2 Incorrect 40 ms 3072 KB Output isn't correct - L* = 0
3 Incorrect 55 ms 2816 KB Output isn't correct - L* = 0
4 Incorrect 39 ms 2816 KB Output isn't correct - L* = 0
5 Incorrect 36 ms 3072 KB Output isn't correct - L* = 0
6 Incorrect 51 ms 3056 KB Output isn't correct - L* = 0
7 Incorrect 38 ms 3072 KB Output isn't correct - L* = 0
8 Incorrect 34 ms 2816 KB Output isn't correct - L* = 0
9 Incorrect 34 ms 3056 KB Output isn't correct - L* = 0
10 Incorrect 56 ms 2800 KB Output isn't correct - L* = 0
11 Incorrect 39 ms 2968 KB Output isn't correct - L* = 0
12 Incorrect 37 ms 2872 KB Output isn't correct - L* = 0
13 Incorrect 33 ms 3072 KB Output isn't correct - L* = 0
14 Incorrect 50 ms 3056 KB Output isn't correct - L* = 0
15 Incorrect 46 ms 3056 KB Output isn't correct - L* = 0
16 Incorrect 41 ms 2816 KB Output isn't correct - L* = 0
17 Incorrect 38 ms 2992 KB Output isn't correct - L* = 0
18 Incorrect 40 ms 3000 KB Output isn't correct - L* = 0
19 Incorrect 51 ms 3024 KB Output isn't correct - L* = 0
20 Incorrect 36 ms 3072 KB Output isn't correct - L* = 0
21 Incorrect 39 ms 3072 KB Output isn't correct - L* = 0
22 Incorrect 33 ms 2816 KB Output isn't correct - L* = 0
23 Incorrect 61 ms 2904 KB Output isn't correct - L* = 0
24 Incorrect 35 ms 2816 KB Output isn't correct - L* = 0
25 Incorrect 47 ms 2816 KB Output isn't correct - L* = 0
26 Incorrect 41 ms 3056 KB Output isn't correct - L* = 0
27 Incorrect 43 ms 3072 KB Output isn't correct - L* = 0
28 Incorrect 76 ms 3056 KB Output isn't correct - L* = 0
29 Incorrect 37 ms 2800 KB Output isn't correct - L* = 0
30 Incorrect 36 ms 2800 KB Output isn't correct - L* = 0
31 Incorrect 41 ms 2816 KB Output isn't correct - L* = 0
32 Incorrect 41 ms 2800 KB Output isn't correct - L* = 0
33 Incorrect 56 ms 3056 KB Output isn't correct - L* = 0
34 Incorrect 66 ms 3056 KB Output isn't correct - L* = 0
35 Incorrect 54 ms 3000 KB Output isn't correct - L* = 0
36 Incorrect 48 ms 3008 KB Output isn't correct - L* = 0
37 Incorrect 36 ms 3016 KB Output isn't correct - L* = 0
38 Incorrect 53 ms 2816 KB Output isn't correct - L* = 0
39 Incorrect 45 ms 2888 KB Output isn't correct - L* = 0
40 Incorrect 42 ms 2816 KB Output isn't correct - L* = 0