# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1256840 | recp | 비밀 (JOI14_secret) | C++20 | 6287 ms | 4436 KiB |
#include <bits/stdc++.h>
#include "secret.h"
using namespace std;
#define ll long long
#define f first
#define s second
int val[1001];
int Query(int L, int R) {
int res = val[L];
for (int i = L+1; i <= R; i++) {
res = Secret(res, val[i]);
}
return res;
}
void Init(int N, int A[]){
ios_base::sync_with_stdio(0);
cin.tie(0);
for (int i = 0; i < N; i++) val[i] = A[i];
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |