摘要:
377. 组合总和 Ⅳ - 力扣(LeetCode) dp,跟完全背包反着来,可以当作是爬楼梯来做,相当于每次爬的楼梯数是从数组种选的。 1 #define IO std::ios::sync_with_stdio(0),cin.tie(0),cout.tie(0) 2 #define bug(x) 阅读全文
posted @ 2024-06-03 20:57
Venux
阅读(39)
评论(0)
推荐(0)
摘要:
1 #define IO std::ios::sync_with_stdio(0),cin.tie(0),cout.tie(0) 2 #define bug(x) cout<<#x<<" is "<<x<<endl; 3 #include<bits/stdc++.h> 4 using namespa 阅读全文
posted @ 2024-06-03 14:45
Venux
阅读(14)
评论(0)
推荐(0)

浙公网安备 33010602011771号