| 2 | using namespace std; |
| 3 | |
| 4 | int main(){ |
| 5 | int N; cin >> N; |
| 6 | for(int i = 0; i <(1<<N); ++i) { |
| 7 | int GC = (i^(i>>1)); |
| 8 | bitset<32>B = GC; |
| 9 | for(int k = 0; k < N; ++k) { |
| 10 | cout << B[k]; |
| 11 | } |
| 12 | cout << '\n'; |
| 13 | } |
| 14 | return 0; |
| 15 | } |
| 16 | |
| 17 | // 00, 01, 11, 10 |
| 18 | // 0th, 1th, 2th, 3th |
nothing calls this directly
no outgoing calls
no test coverage detected