test/cpv/aizu-dpl/dpl_1_h.cpp
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // competitive-verifier: PROBLEM https://onlinejudge.u-aizu.ac.jp/courses/library/7/DPL/all/DPL_1_H | ||
| 2 | #include "../../../src/opt/knapsack/bin/lib.hpp" | ||
| 3 | |||
| 4 | using namespace tifa_libs; | ||
| 5 | 32 | int main() { | |
| 6 |
1/2✓ Branch 2 taken 32 times.
✗ Branch 3 not taken.
|
32 | std::cin.tie(nullptr)->std::ios::sync_with_stdio(false); |
| 7 | u64 n, w; | ||
| 8 |
2/4✓ Branch 1 taken 32 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 32 times.
✗ Branch 5 not taken.
|
32 | std::cin >> n >> w; |
| 9 |
1/2✓ Branch 1 taken 32 times.
✗ Branch 2 not taken.
|
32 | vecpt<u64> a(n); |
| 10 |
4/6✓ Branch 6 taken 649 times.
✗ Branch 7 not taken.
✓ Branch 9 taken 649 times.
✗ Branch 10 not taken.
✓ Branch 13 taken 649 times.
✓ Branch 14 taken 32 times.
|
681 | for (auto& [v, w] : a) std::cin >> v >> w; |
| 11 |
2/4✓ Branch 2 taken 32 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 32 times.
✗ Branch 6 not taken.
|
32 | std::cout << knapsack_01(a, w) << '\n'; |
| 12 | 32 | return 0; | |
| 13 | 32 | } | |
| 14 |