# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
471116 | gs18103 | Bulldozer (JOI17_bulldozer) | C++14 | 809 ms | 33496 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define eb emplace_back
#define em emplace
#define all(v) v.begin(), v.end()
#define fi first
#define se second
using namespace std;
typedef long long ll;
typedef pair <int, int> pii;
typedef pair <ll, ll> pll;
const int MAX = 1010;
const int INF = 1e9;
const ll LINF = 9e18;
class SegmentTree {
struct Node {
ll lmx = 0, rmx = 0, mx = 0, s = 0;
Node operator + (Node b) {
Node ret;
ret.lmx = max(lmx, s + b.lmx);
ret.rmx = max(b.rmx, b.s + rmx);
ret.mx = max({mx, b.mx, rmx + b.lmx});
ret.s = s + b.s;
return ret;
}
};
vector <Node> tree;
컴파일 시 표준 에러 (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... |