| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1081806 | jer033 | 송신탑 (IOI22_towers) | C++17 | 673 ms | 1368 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "towers.h"
#include <vector>
#include <bits/stdc++.h>
using namespace std;
vector<int> H;
int N;
int K;
void init(int n, std::vector<int> h) {
H = h;
N = n;
int ma = -1;
int bes = -1;
for (int i=0; i<n; i++)
{
if (h[i] > ma)
{
ma = h[i];
bes = i;
}
}
K = bes;
}
int max_towers(int L, int R, int D) {
if ((L<K) and (K<R) and ((H[K]-H[L])>=D) and (((H[K]-H[R])>=D)))
return 2;
return 1;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
