Submission #1256828

#TimeUsernameProblemLanguageResultExecution timeMemory
1256828aaldofebrian비밀 (JOI14_secret)C++20
6 / 100
6214 ms4400 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 timeMemoryGrader output
Fetching results...