File tree Expand file tree Collapse file tree
tests/library_checker_aizu_tests/handmade_tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ vector<bitset<B>> get_all(const vector<bitset<B>>& basis) {
2121}
2222int main () {
2323 cin.tie (0 )->sync_with_stdio (0 );
24- for (int num_tests = 0 ; num_tests < 10000 ; num_tests++) {
24+ for (int num_tests = 0 ; num_tests < 1000 ; num_tests++) {
2525 xor_basis<B> b;
2626 int n = rnd (1 , 18 );
2727 vector<bitset<B>> naive_basis;
@@ -37,8 +37,10 @@ int main() {
3737 vector<bitset<B>> naive_span = get_all (naive_basis);
3838 vector<bitset<B>> fast_span = get_all (fast_basis);
3939 assert (naive_span == fast_span);
40- for (int i = 0 ; i < ssize (naive_span); i++)
41- assert (naive_span[i] == b.walk (i));
40+ for (int i = 0 ; i < ssize (naive_span); i++) {
41+ bitset<B> k = i;
42+ assert (naive_span[i] == b.walk (k));
43+ }
4244 }
4345 cout << " Hello World\n " ;
4446}
You can’t perform that action at this time.
0 commit comments