# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
340156 | GioChkhaidze | Segments (IZhO18_segments) | C++14 | 2280 ms | 7624 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define pb push_back
using namespace std;
const int N = 2e5 + 5;
const int Sq = 1300;
int A[N], B[N], C[N];
int n, u, t, bl, lastans;
int sq = 1500;
struct st { int x; };
bool operator<(const st& a,const st& b) {
return C[a.x] < C[b.x];
}
struct {
vector < st > u, c, ol;
vector < int > L[N / Sq], R[N / Sq];
void insert(st id) {
u.pb(id);
if (u.size() == sq) {
vector < st > c;
c.reserve(u.size() + ol.size());
sort(u.begin(), u.end());
merge(u.begin(), u.end(), ol.begin(), ol.end(), back_inserter(c));
컴파일 시 표준 에러 (stderr) 메시지
# | 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... |