Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
fei0319 committed Mar 4, 2024
2 parents 9f52b89 + 800b416 commit 98d8171
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions contest/cf1938/B.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ const int MAXN = 1e5 + 19;
class Segment {
static struct Node {
int ls, rs;
std::pair<int, int> min {INF, 0};
std::pair<int, int> min{INF, 0};
} tr[MAXN * 2];
static int tot;
static void push_up(int node) {
tr[node].min = std::min(tr[tr[node].ls].min, tr[tr[node].rs].min);
}

public:
static int rt;
static int query() {
Expand Down Expand Up @@ -149,7 +150,7 @@ int main() {

int d = neighbors.size();
for (int S = 1; S < (1 << d); ++S) {
std::vector<int> a {x};
std::vector<int> a{x};
for (int j = 0; j < d; ++j) {
if (S & (1 << j)) {
a.push_back(neighbors[j]);
Expand Down

0 comments on commit 98d8171

Please sign in to comment.