test/cpv_local/edh/gray_code.csp2019s.cpp
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // competitive-verifier: LOCALCASE test/cpv_local/_data/csp/2019s | ||
| 2 | |||
| 3 | #include "../../../src/edh/gray_code/lib.hpp" | ||
| 4 | |||
| 5 | using namespace tifa_libs; | ||
| 6 | using std::cin, std::cout; | ||
| 7 | |||
| 8 | ✗ | int main() { | |
| 9 | u32 n; | ||
| 10 | u64 k; | ||
| 11 | ✗ | cin >> n >> k; | |
| 12 | ✗ | auto x = gray_code(n, k).to_string().substr(64 - n); | |
| 13 | ✗ | cout << x << '\n'; | |
| 14 | ✗ | } | |
| 15 |