# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
53147 | okaybody10 | 비밀 (JOI14_secret) | C++98 | 590 ms | 5528 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#include "secret.h"
using namespace std;
typedef long long ll;
ll T[1006];
int B[1006];
void Init(int N,int A[])
{
for(int i=0;i<N-1;i++) T[i]=Secret(A[i],A[i+1]);
}
int Query(int L,int R)
{
if(R==L) return B[L];
if(R==L+1) return T[L];
int mid=(L+R)/2;
return Secret(Query(L,(L+R)/2),Query((L+R)/2+1,R));
}
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |