求助

P2831 [NOIP2016 提高组] 愤怒的小鸟

@[瓜皮少年](/space/show?uid=52530) 题解里没有DLX,深搜我早就过了
by 钱逸凡 @ 2018-11-06 18:37:50


@[钱逸凡](/space/show?uid=28088) 输入\\172.16.17.1 查看DLX如何打qwq
by 瓜皮少年 @ 2018-11-06 18:40:44


两种: 1.深搜可以剪枝%60up 2.//dp不断尝试:如下 \\\\\\\\ \\ \ 如第一行所示,重复位置的值就是真值,打表即可 附上很有用的迭代器: 伪代码: ```cpp #include <bits/stdc++.h> using namespace std; int main(){ vector<int>iter vector<int>:iterator iter> iter.push_back(4) iter.push_back(2) iter.push_back(3) for(iver=iver.begin():iter !=ivec.end();iter++) cout<<*iter<<endl; } ```
by T_F_P @ 2018-12-15 14:23:51


注意,很伪!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
by T_F_P @ 2018-12-15 14:24:33


上一页 |