test/cpv/aizu-itp1/itp1_8_d.cpp
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // competitive-verifier: PROBLEM https://onlinejudge.u-aizu.ac.jp/courses/lesson/2/ITP1/all/ITP1_8_D | ||
| 2 | #include "../../../src/str/kmp/lib.hpp" | ||
| 3 | |||
| 4 | using namespace tifa_libs; | ||
| 5 | 30 | int main() { | |
| 6 |
1/2✓ Branch 2 taken 30 times.
✗ Branch 3 not taken.
|
30 | std::cin.tie(nullptr)->std::ios::sync_with_stdio(false); |
| 7 | 30 | strn s, p; | |
| 8 |
2/4✓ Branch 1 taken 30 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 30 times.
✗ Branch 5 not taken.
|
30 | std::cin >> s >> p; |
| 9 |
1/2✓ Branch 1 taken 30 times.
✗ Branch 2 not taken.
|
30 | s += s; |
| 10 |
4/6✓ Branch 4 taken 8 times.
✓ Branch 5 taken 22 times.
✓ Branch 7 taken 30 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 30 times.
✗ Branch 11 not taken.
|
30 | std::cout << (kmp(p, s).empty() ? "No" : "Yes") << '\n'; |
| 11 | 30 | return 0; | |
| 12 | 30 | } | |
| 13 |