# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
348804 | Mefarnis | Salesman (IOI09_salesman) | C++14 | 2397 ms | 55228 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define maxn 500003
using namespace std;
typedef long long LL;
struct poi {
int t,l,p;
}ar[maxn];
bool comp(const poi& a , const poi& b) {
return a.t < b.t;
}
LL ans;
int n,u,d,s,m;
LL tree[4*maxn][2];
map<int,int> mp;
void init(int x , int y , int id) {
tree[id][0] = LLONG_MIN;
tree[id][1] = LLONG_MIN;
if(x == y)
return;
int mid = (x+y) >> 1;
init(x,mid,2*id);
init(mid+1,y,2*id+1);
}
LL update(int cx , int cy , int q , LL val , int t , int id) {
if(q < cx || cy < q)
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |