题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1027 题目大意:求1-N的数列的第M个有序全排列 关键思想:用STL的next_permutation函数。或者康托展开 …
分类:Online Judge
HDU 1072 [Nightmare] BFS
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1072 题目大意:给一个地图,从起点开始往终点走,6s后会爆炸,当遇到’4’时,爆炸倒计时会重置为6…
Codeforces Round #355 (Div. 2) D. Vanya and Treasure 分治暴力
D. Vanya and Treasure 题目连接: http://www.codeforces.com/contest/677/problem/D Description Vanya is in the palace…
Codeforces Round #352 (Div. 2) B. Different is Good 水题
B. Different is Good 题目连接: http://www.codeforces.com/contest/672/problem/B Description A wise man told Kerem &…
IndiaHacks 2016 - Online Edition (Div. 1 + Div. 2) E. Bear and Forgotten Tree 2 bfs set 反图的生成树
E. Bear and Forgotten Tree 2 题目连接: http://www.codeforces.com/contest/653/problem/E Description A tree is a con…
ACM/ICPC 之 Floyd+记录路径后继(Hdu1385(ZOJ1456))
需要处理好字典序最小的路径 HDU1385(ZOJ1456)-Minimum Transport //Hdu1385-ZOJ1456 //给定邻接矩阵,求给定起点到…
BZOJ 2038 [2009国家集训队]小Z的袜子 莫队
2038: [2009国家集训队]小Z的袜子(hose) 题目连接: http://www.lydsy.com/JudgeOnline/problem.php?id=2038 Descriptionww.co 作为一个生…
HDU 2829 Lawrence(斜率优化DP)
Lawrence Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Other…
HDU 1029 [Ignatius and the Princess IV]STL map应用
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1029 题目大意:找出一串数字序列(长度为奇数)中出现次数>=(N+1)/2的数字并输出。 关键思想:map统计+遍历…
HDU 5682 zxa and leaf 二分 树形dp
zxa and leaf 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5682 Description zxa have an unrooted tree with n…
hdu 4452 Running Rabbits 模拟
Running RabbitsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Othe…
hdoj 5120 Intersection 圆环面积求交
Intersection Time Limit: 4000/4000 MS (Java/Others) Memory Limit: 512000/512000 K (Java/Others) Total Submissi…