제출 #1138062

#제출 시각아이디문제언어결과실행 시간메모리
1138062SmuggingSpun비밀 (JOI14_secret)C++20
6 / 100
6233 ms4412 KiB
#include "secret.h" #include<bits/stdc++.h> using namespace std; const int lim = 1e3 + 5; int a[lim]; void Init(int n, int A[]){ for(int i = 0; i < n; i++){ a[i] = A[i]; } } int Query(int l, int r){ int ans = a[l]; for(int i = l + 1; i <= r; i++){ ans = Secret(ans, a[i]); } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...