# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1132937 | lopkus | Secret (JOI14_secret) | C++20 | 6223 ms | 4416 KiB |
#include <bits/stdc++.h>
#include "secret.h"
using namespace std;
const int N = 1001;
vector<int> a(N);
void Init(int N, int A[]) {
//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 = Secret(ans, a[i]);
}
return ans;
}
/*
int main() {
}*/
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |