摘要: 题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=5676 在这%一下安神,用了我没见过的黑科技next_permutation,至少我是今天才知道的 1 #include<cstdio> 2 #include<cstring> 3 #include<cm 阅读全文
posted @ 2016-04-30 23:25 bin_gege 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=2608 反正我是没找出这个规律的,规律参考的别人的! 1 #include<cstdio> 2 #include<cmath> 3 int main(){ 4 int t,n; 5 scanf("%d", 阅读全文
posted @ 2016-04-30 16:59 bin_gege 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=2717 题解:一维简单BFS,详细看代码,0ms。 1 #include<cstdio> 2 #include<queue> 3 using namespace std; 4 const int maxn 阅读全文
posted @ 2016-04-30 16:12 bin_gege 阅读(162) 评论(0) 推荐(0) 编辑