Submission #605818

#TimeUsernameProblemLanguageResultExecution timeMemory
605818kawaiiSecret (JOI14_secret)C++14
0 / 100
442 ms4356 KiB
#include "secret.h" int a[100005]; void Init(int N, int A[]){ int x = Secret(0, 1000000000); for(int i = 0; i < N; i++) a[i] = A[i]; } int Query(int L, int R){ int ans = a[L]; for(int i = L + 1; i <= R; i++) ans &= a[i]; return ans; }

Compilation message (stderr)

secret.cpp: In function 'void Init(int, int*)':
secret.cpp:6:9: warning: unused variable 'x' [-Wunused-variable]
    6 |     int x = Secret(0, 1000000000);
      |         ^
#Verdict Execution timeMemoryGrader output
Fetching results...