Submission #636533

#TimeUsernameProblemLanguageResultExecution timeMemory
636533JooDdaeSecret (JOI14_secret)C++17
6 / 100
7833 ms4396 KiB
#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 timeMemoryGrader output
Fetching results...