# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
646132 | Matteo_Verz | 중앙값 배열 (balkan11_medians) | C++17 | 109 ms | 12004 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#ifdef BLAT
#include "debug/debug.hpp"
#else
#define debug(x...)
#endif
using namespace std;
void nextValue(int &last, int coef, const set <int> &myset) {
while (myset.find(last) == myset.end())
last += coef;
}
void insertValue(int value, vector <int> &v, set <int> &myset) {
v.push_back(value);
myset.erase(value);
}
int main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
int n;
vector <int> a, b;
set <int> myset;
cin >> n;
b.resize(n);
cin >> b[0];
a.push_back(b[0]);
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |