제출 #931206

#제출 시각아이디문제언어결과실행 시간메모리
931206parlimoos비밀 (JOI14_secret)C++14
6 / 100
6611 ms4504 KiB
//Be Name KHODA
#pragma GCC optimize("Ofast")
#include<bits/stdc++.h>
#include "secret.h"
using namespace std;
 
int n;
vector<int> a;
 
void Init(int N , int A[]){
  n = N;
  for(int i = 0 ; i < n ; i++) a.push_back(A[i]);
}
int Query(int L , int R){
  int res = a[L];
  for(int i = L + 1 ; i <= R ; i++) res = Secret(res , a[i]);
  return res;
}
#Verdict Execution timeMemoryGrader output
Fetching results...