| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 154053 | combi1k1 | 라멘 (JOI14_ramen) | C++14 | 3 ms | 504 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "ramen.h"
#include<bits/stdc++.h>
int L = 0;
int R = 0;
void calc(int l,int r) {
if (r - l == 0) {
L = R = l;
return;
}
if (r - l == 1) {
L = l;
R = r;
if (Compare(L,R) < 0)
L = r,
R = l;
return;
}
int m = (l + r) / 2;
calc(l,m); ++m;
int ll = L;
int rr = R;
calc(m,r);
if (Compare(L,ll) < 0) L = ll;
if (Compare(R,rr) > 0) R = rr;
}
void Ramen(int n) {
calc(0,n - 1);
Answer(R,L);
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
