Submission #605818

# Submission time Handle Problem Language Result Execution time Memory
605818 2022-07-26T02:43:39 Z kawaii Secret (JOI14_secret) C++14
0 / 100
442 ms 4356 KB
#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

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 time Memory Grader output
1 Incorrect 107 ms 2368 KB Wrong Answer: Query(222, 254) - expected : 34031541, actual : 0.
2 Incorrect 112 ms 2404 KB Wrong Answer: Query(60, 375) - expected : 669221184, actual : 0.
3 Incorrect 114 ms 2448 KB Wrong Answer: Query(211, 401) - expected : 674373968, actual : 0.
4 Incorrect 405 ms 4356 KB Wrong Answer: Query(90, 497) - expected : 397934825, actual : 0.
5 Incorrect 418 ms 4356 KB Wrong Answer: Query(587, 915) - expected : 752404486, actual : 0.
6 Incorrect 420 ms 4324 KB Wrong Answer: Query(738, 741) - expected : 983692994, actual : 302120960.
7 Incorrect 417 ms 4308 KB Wrong Answer: Query(84, 976) - expected : 742463504, actual : 0.
8 Incorrect 426 ms 4300 KB Wrong Answer: Query(58, 987) - expected : 20022464, actual : 0.
9 Incorrect 419 ms 4304 KB Wrong Answer: Query(33, 967) - expected : 676869696, actual : 0.
10 Incorrect 442 ms 4268 KB Wrong Answer: Query(116, 961) - expected : 68487362, actual : 0.