Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
fei0319 committed Mar 3, 2024
2 parents b96062b + dc0c74b commit f79c31e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion contest/cf1936/A.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ void solve() {
}

int p = 0;
std::vector<int> v {p};
std::vector<int> v{p};
for (int i = 1; i < n; ++i) {
char t = query(max, p, max, i);
if (t == '<') {
Expand Down
2 changes: 1 addition & 1 deletion contest/cf1936/B.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ struct BIT {
}
void update(int x, int k) {
x += 1;

for (; x <= n + 10; x += x & -x) {
tr[x] += k;
}
Expand Down
9 changes: 3 additions & 6 deletions contest/cf1936/C.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ void solve() {
}

std::vector<std::vector<std::pair<int, int>>> G(n * 2 + n * m + 1);
auto add = [&](int u, int v, int w) {
G[u].emplace_back(v, w);
};
auto add = [&](int u, int v, int w) { G[u].emplace_back(v, w); };
auto dijkstra = [&](auto &G, int src, int t) -> ll {
std::vector<ll> dist(G.size(), ll(1e18));
std::vector<uint8_t> vist(G.size(), false);
Expand Down Expand Up @@ -70,9 +68,8 @@ void solve() {
for (int i = 1; i <= n; ++i) {
id.push_back(i);
}
std::sort(id.begin(), id.end(), [&](int x, int y) {
return a[x][b] < a[y][b];
});
std::sort(id.begin(), id.end(),
[&](int x, int y) { return a[x][b] < a[y][b]; });

int d = n * 2 + n * (b - 1);
std::vector<int> v;
Expand Down

0 comments on commit f79c31e

Please sign in to comment.