# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
119088 | Bruteforceman | Cambridge (info1cup18_cambridge) | C++11 | 132 ms | 10232 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "bits/stdc++.h"
using namespace std;
typedef pair <int, int> pii;
int t[100010], d[100010];
int opt[100010];
int order[100010];
int pos[100010];
long long sum[100010 * 4];
long long ans[100010 * 4];
const long long inf = 1e18;
int n;
bool cmp(int p, int q) {
if(d[p] == d[q]) {
return t[p] < t[q];
}
return d[p] < d[q];
}
void add(int x, int c = 1, int b = 1, int e = n) {
if(b == e) {
sum[c] = t[order[b]];
ans[c] = d[order[b]] - t[order[b]];
return ;
}
int m = (b + e) >> 1;
int l = c << 1;
int r = l + 1;
컴파일 시 표준 에러 (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... |