algorithm

This documentation is automatically generated by online-judge-tools/verification-helper

View the Project on GitHub gtnao/algorithm

:warning: src/search/bit_full_search.hpp

Code

#pragma once

#include <bits/stdc++.h>
using namespace std;

inline void bit_full_search(int n) {
  for (int bit = 0; bit < (1 << n); ++bit) {
    for (int i = 0; i < n; ++i) {
      if (bit & (1 << i)) {
        // do something
      }
    }
  }
}
#line 2 "src/search/bit_full_search.hpp"

#include <bits/stdc++.h>
using namespace std;

inline void bit_full_search(int n) {
  for (int bit = 0; bit < (1 << n); ++bit) {
    for (int i = 0; i < n; ++i) {
      if (bit & (1 << i)) {
        // do something
      }
    }
  }
}
Back to top page