# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
636533 | JooDdae | Secret (JOI14_secret) | C++17 | 7833 ms | 4396 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "secret.h"
#include <bits/stdc++.h>
using namespace std;
int n, a[1010];
void Init(int N, int A[]) {
n = N;
for(int i=1;i<=n;i++) a[i] = A[i-1];
}
int Query(int L, int R) {
int re = a[L+1];
for(int i=L+1;i<=R;i++) re = Secret(re, a[i+1]);
return re;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |