test/cpv/aizu-alds1/alds1_13_b.cpp
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // competitive-verifier: PROBLEM https://onlinejudge.u-aizu.ac.jp/courses/lesson/1/ALDS1/all/ALDS1_13_B | ||
| 2 | #include "../../../src/game/npuzzle_data/lib.hpp" | ||
| 3 | #include "../../../src/opt/astar/lib.hpp" | ||
| 4 | |||
| 5 | using namespace tifa_libs; | ||
| 6 | 28 | int main() { | |
| 7 |
1/2✓ Branch 2 taken 28 times.
✗ Branch 3 not taken.
|
28 | std::cin.tie(nullptr)->std::ios::sync_with_stdio(false); |
| 8 | 28 | npuzzle_data start(3); | |
| 9 |
1/2✓ Branch 1 taken 28 times.
✗ Branch 2 not taken.
|
28 | std::vector<u32> fin(9); |
| 10 | 28 | std::iota(begin(fin), end(fin) - 1, 1); | |
| 11 | 28 | npuzzle_data::set_fin(3, fin); | |
| 12 | 28 | npuzzle_data::limit = 100; | |
| 13 | 28 | std::cin >> start; | |
| 14 |
2/4✓ Branch 4 taken 28 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 28 times.
✗ Branch 8 not taken.
|
28 | std::cout << astar(start)->moves.size() << '\n'; |
| 15 | 28 | return 0; | |
| 16 | 28 | } | |
| 17 |