摘要: POJ 1011 Sticks backtrakcing+剪枝#include #include #include #include #include using namespace std;int n,sum,maxx,marked,visited[100],ans;vector v;void... 阅读全文
posted @ 2013-08-21 15:33 炒饭君 阅读(125) 评论(0) 推荐(0) 编辑
摘要: uva 11386 Triples这题 应该用 hash , 用 STL map超时,但是我自己手写二分,再加一些优化,限时8秒,我7.8秒卡过,很爽!这题弹了很多遍,注意的是,ans 用int 不够,最后直接改为long long 就过了,因为这题数据没说范围,只说了是正整数,所以有点不爽啊。。。... 阅读全文
posted @ 2013-08-21 12:32 炒饭君 阅读(161) 评论(0) 推荐(0) 编辑