제출 #100048

#제출 시각아이디문제언어결과실행 시간메모리
100048errorgornBroken Device (JOI17_broken_device)C++14
0 / 100
76 ms3072 KiB
#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;
  }
}

컴파일 시 표준 에러 (stderr) 메시지

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 timeMemoryGrader output
Fetching results...