# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
487184 | 2021-11-14T19:04:02 Z | AnasBenMoussa | Secret (JOI14_secret) | C++14 | 0 ms | 0 KB |
#include "secret.h" void Init(int N, int A[]){ for(int i=0;i<N;i++){ a[i]=A[i]; } } int Query(int L , int R){ int r; r=Secret(a[L+1],a[L]); for(int i=L+2;i<=R;i++){ r=Secret(r,a[i]); } return r; }