# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1171384 | ezzzay | Secret (JOI14_secret) | C++20 | 0 ms | 0 KiB |
#include "secret.h"
#include<bits/stdc++.h>
using namespace std;
#define ff first
#define ss second
#define pb push_back
vector<int>a;
void Init(int N, int A[]) {
for(int i=0;i<N;i++)a.push_back(A[i]);
}
int Query(int L, int R) {
int x=a[L];
for(int i=L+1;i<=R;i++){
x= Secret(x,A[i]);
}
return x;
}