摘要: 题目:http://acm.hdu.edu.cn/showproblem.php?pid=5745 C++ bitset的用法:https://www.cnblogs.com/magisk/p/8809922.html 题目: 题意:给两个字符串 a 和 b ,b可以进行变换,规则是可以任意交换相邻 阅读全文
posted @ 2019-03-01 19:28 里昂静 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 链接:http://acm.hdu.edu.cn/showproblem.php?pid=4035 题意: 有n个房间,由n-1条隧道连通起来,实际上就形成了一棵树, 从结点1出发,开始走,在每个结点i都有3种可能: 1.被杀死,回到结点1处(概率为ki) 2.找到出口,走出迷宫 (概率为ei) 3 阅读全文
posted @ 2019-03-01 17:27 里昂静 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 描述 Diablo III is an action role-playing video game. A few days ago, Reaper of Souls (ROS), the new expansion of Diablo III, has been released! On hear 阅读全文
posted @ 2019-03-01 17:07 里昂静 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 链接:http://acm.hdu.edu.cn/showproblem.php?pid=4747 题目大意:给一个含有n个数的序列 ns[1~n],定义函数 mex(l,r)为区间 [l,r] 中未出现的最小的非负整数,求序列ns所有区间的 mex 和。 Sample Input Sample O 阅读全文
posted @ 2019-03-01 16:28 里昂静 阅读(278) 评论(0) 推荐(0) 编辑