上一页 1 ··· 44 45 46 47 48
摘要: 题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=4046 题意:一大堆篇幅介绍,跳过直奔主题,让你寻找给定区间的“wbw”的个数。 题解:直接上树状数组,改变字符后对应改变3个值就行,注意的是询问 [l,r],应该对应输出的是[l+1,r]。因为sum[ 阅读全文
posted @ 2016-05-01 18:07 bin_gege 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 题目连接: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 阅读(136) 评论(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 阅读(282) 评论(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) 编辑
摘要: 注意这个是在网上收集的,减法有一个地方有错误,我已经修正,下面是修正后的大数模板 这个模板不支持负数 1 #include <iostream> 2 #include <stdio.h> 3 #include <algorithm> 4 #include <string.h> 5 using nam 阅读全文
posted @ 2016-04-29 20:34 bin_gege 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=1245 题意:给一个已知直径的圆形岛,然后岛的附近是湖,湖里有一些点,以坐标的形式给出,最外层是矩形的终点。 给定跳跃的距离d,让你判断是否能跳到最外层,如果能就输出最短距离以及这个最短跳的步数。 题解: 阅读全文
posted @ 2016-04-29 20:15 bin_gege 阅读(159) 评论(0) 推荐(0) 编辑
上一页 1 ··· 44 45 46 47 48