Submission #549712

#TimeUsernameProblemLanguageResultExecution timeMemory
549712colossal_pepeSecret (JOI14_secret)C++17
6 / 100
8502 ms4352 KiB
#include <secret.h> using namespace std; int n, a[1005]; void Init(int N, int A[]) { n = N; 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; }
#Verdict Execution timeMemoryGrader output
Fetching results...