Skip to content

Commit

Permalink
fix small coord
Browse files Browse the repository at this point in the history
  • Loading branch information
maspypy committed Dec 19, 2023
1 parent 5ee969d commit 1b0df87
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions datastructure/rectangle_add_point_get/gen/small_coord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ using namespace std;
const int MAX = 50;

tuple<int, int, int, int, int> random_rect(Random& gen) {
auto [l, r] = gen.uniform_pair<int>(0, COORD_MAX);
auto [d, u] = gen.uniform_pair<int>(0, COORD_MAX);
auto [l, r] = gen.uniform_pair<int>(0, MAX);
auto [d, u] = gen.uniform_pair<int>(0, MAX);
int w = gen.uniform<int>(0, WEIGHT_MAX);
return {l, d, r, u, w};
}

pair<int, int> random_pt(Random& gen) {
int x = gen.uniform<int>(0, COORD_MAX);
int y = gen.uniform<int>(0, COORD_MAX);
int x = gen.uniform<int>(0, MAX);
int y = gen.uniform<int>(0, MAX);
return {x, y};
}

Expand Down
12 changes: 6 additions & 6 deletions datastructure/rectangle_add_point_get/hash.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
"small_03.out": "611faef0202f8ccaeed4a0d55d99e106782988896501fc74b3782e2e440d99d1",
"small_04.in": "b8f8a50bdc6aa3047692da6279e6c31ed5c61978b08f7c3bc2b8cea8b4f8e164",
"small_04.out": "b894958f102a886cab02e991f84334031e8e8805134304677d355cc45a1e9d0e",
"small_coord_00.in": "6183973f0afe20d3443ae700ff398765f23987cf3a0df0018f463d43e9e5d479",
"small_coord_00.out": "2aef9d6c2ca2686a241705aa5a0368898027144e70e4227c24fadebca921664c",
"small_coord_01.in": "883ccca6298a9c4dba27247c54f6218e05f73d40c83518adbcacad541729180c",
"small_coord_01.out": "6f9fd18e62deb13747cd23bd32daf18a6215db65c388661050153ce888d65f7a",
"small_coord_02.in": "e5a0da90ab5ce888d0e6cbd8c2c1c5a42c7d927fe273afc43b1589340307403c",
"small_coord_02.out": "c8b6a43ecdf9dd5c789e2f31209d62183b7cbad3def0aa3039d48f6eaf28108d"
"small_coord_00.in": "64aab4d1b54826243a2925e4e540eb4176a6aac82f23e66404a7f712f9c703f1",
"small_coord_00.out": "746fc1caca864bfeda6f438f63e0fdcd26e4c67b610b6d2adb2068233aca9f5d",
"small_coord_01.in": "f99f657344de70498d1fc5c8b7c06855f97bd6a333898c81b194021c629f4ad3",
"small_coord_01.out": "82fc5679024c4635e36a043e4a2eee2ac82e0cc7a4c61971d4246e6b66170896",
"small_coord_02.in": "93f4311db97a54fbdf211ba0ca5f2af13e05e2901fc4ad1de57a3dc38cb9edb7",
"small_coord_02.out": "9d6564c38fe516f182105b4af3aee45b9d86b99ce9313467f14132ca2810b487"
}

0 comments on commit 1b0df87

Please sign in to comment.