Submission #774487

#TimeUsernameProblemLanguageResultExecution timeMemory
774487colossal_pepeSecret (JOI14_secret)C++17
6 / 100
6474 ms4352 KiB
#include <secret.h>
using namespace std;
 
int n, a[1005];
 
void Init(int N, int A[]) {
    n = N;
    for (int i = 0; i < n; i++) {
        a[i] = A[i];
    }
}
 
int Query(int L, int R) {
    int ans = a[R];
    for (int i = R - 1; i >= L; i--) {
        ans = Secret(a[i], ans);
    }
    return ans;
}
#Verdict Execution timeMemoryGrader output
Fetching results...