Skip to content

Commit 243a6c7

Browse files
committed
update tests
1 parent 1aa2756 commit 243a6c7

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

tests/library_checker_aizu_tests/data_structures/simple_tree_inc.test.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ int main() {
66
cin.tie(0)->sync_with_stdio(0);
77
int n, q;
88
cin >> n >> q;
9-
tree st(n, int{}, ranges::min);
10-
rep(i, 0, n) st.update(i, INT_MAX);
9+
tree st(n, INT_MAX, ranges::min);
1110
while (q--) {
1211
int type;
1312
cin >> type;

tests/library_checker_aizu_tests/data_structures/simple_tree_inc_line.test.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,14 @@ int main() {
77
cin.tie(0)->sync_with_stdio(0);
88
int n, q;
99
cin >> n >> q;
10-
tree st(n, array<int, 2>{},
10+
vector<array<int, 2>> a(n);
11+
for (int i = 0; i < n; i++) cin >> a[i][0] >> a[i][1];
12+
tree st(a,
1113
[&](const array<int, 2>& l,
1214
const array<int, 2>& r) -> array<int, 2> {
1315
return {int(1LL * l[0] * r[0] % mod),
1416
int((1LL * r[0] * l[1] + r[1]) % mod)};
1517
});
16-
for (int i = 0; i < n; i++) {
17-
int a, b;
18-
cin >> a >> b;
19-
st.update(i, array<int, 2>{a, b});
20-
}
2118
while (q--) {
2219
int type;
2320
cin >> type;

0 commit comments

Comments
 (0)