# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
71543 | aome | Election (BOI18_election) | C++17 | 551 ms | 105636 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
const int N = 500005;
const int INF = 1e9;
struct Node {
int sum, val;
Node() { sum = val = 0; }
void dbg() { cout << "#node " << sum << ' ' << val << '\n'; }
};
struct Query {
int l, r, id;
bool operator < (const Query& rhs) const {
return l > rhs.l;
}
};
int n, q, res[N];
string s;
Node T[N * 2];
vector<Query> queries;
Node combine(Node &x, Node &y) {
Node ret;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |