Submission #94830

#TimeUsernameProblemLanguageResultExecution timeMemory
94830easruiSecret (JOI14_secret)C++14
6 / 100
972 ms8572 KiB
#include "secret.h" #include <bits/stdc++.h> using namespace std; int D[1001][1001]; void Init(int N, int A[]) { for(int i=0; i<N; i++) D[i][i] = A[i]; for(int i=0; i<N; i++){ for(int j=i+1; j<N; j++){ D[i][j] = Secret(D[i][j-1],D[j][j]); } } } int Query(int L, int R) { return D[L][R]; }
#Verdict Execution timeMemoryGrader output
Fetching results...