# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
674174 | QwertyPi | Cambridge (info1cup18_cambridge) | C++14 | 303 ms | 22048 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define int long long
#define fi first
#define se second
#define pii pair<int, int>
using namespace std;
const int MOD = 1e9 + 7;
const int MAXN = 1e5 + 11;
const int B = 800;
int t[MAXN], d[MAXN];
int ans[MAXN], to[MAXN];
struct query{
int l, r, id;
bool operator< (const query& o) const {
if(l / B != o.l / B)
return l / B < o.l / B;
else if(r != o.r)
return l / B % 2 == 0 ? r < o.r : r > o.r;
else
return id < o.id;
}
};
namespace DS{
struct SegTree{
int mx[MAXN << 3] = {0}, s[MAXN << 3] = {0};
# | 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... |