제출 #774465

#제출 시각아이디문제언어결과실행 시간메모리
774465colossal_pepe비밀 (JOI14_secret)C++17
0 / 100
422 ms4272 KiB
#include <secret.h> using namespace std; int n, a[1005]; void Init(int N, int A[]) { n = N; for (int i = 0; i < n; i++) { a[i] = A[i]; } } int Query(int L, int R) { int ans = a[R]; for (int i = R - 1; i >= L; i--) { ans = Secret(ans, a[i]); } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...