# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1138062 | SmuggingSpun | 비밀 (JOI14_secret) | C++20 | 6233 ms | 4412 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 time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |