# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1256828 | aaldofebrian | Secret (JOI14_secret) | C++20 | 6214 ms | 4400 KiB |
#include "secret.h"
#include <vector>
using namespace std;
static vector<int> arr;
void Init(int N, int A[]) {
arr.assign(A, A + N);
}
int Query(int L, int R) {
int res = arr[L];
for (int i = L + 1; i <= R; i++) {
res = Secret(res, arr[i]);
}
return res;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |