# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
487189 | AnasBenMoussa | Secret (JOI14_secret) | C++14 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "secret.h"
long long a[10000];
void Init(int N, int A[]){
for(long long i=0;i<N;i++){
a[i]=A[i];
}
}
long long Query(int L , int R){
long long r;
r=Secret(a[L+1],a[L]);
for(long long i=L+2;i<=R;i++){
r=Secret(r,a[i]);
}
return r;
}