会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
午夜阳光~
在美国的最北边巴罗小镇,北极圈以北,530公里北冰洋岸边,在那的大街上都可以看到北极熊,每年的5.11到8.1这83天里,太阳都不会落到地平线下面。那里的午夜都有阳光……
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
11
12
13
14
15
2015年5月2日
http://acm.hdu.edu.cn/showproblem.php?pid=2579
摘要: #include#include#include#define N 110int m, n, k, x1, x2, y1, y2;char map[N][N];int v[N][N][N];//当时间是k的倍数时,障碍消失,之后又重现,所以在平时使用的二维标记数组中再加一维int d[4][2] =...
阅读全文
posted @ 2015-05-02 10:47 午夜阳光~
阅读(263)
评论(0)
推荐(0)
2015年4月29日
KMP应用http://acm.hdu.edu.cn/showproblem.php?pid=2594
摘要: riemann与marjorie拼接后riemannmarjorie前缀与后缀公共部分为 rie 长度为 3(即next[l] = next[14]的值,l为拼接后的长度)但:aaaa与aa拼接后aaaaaa,next[l]不是结果,所以在aaaa和aa间加“#”,即aaaa#aa;#include...
阅读全文
posted @ 2015-04-29 00:40 午夜阳光~
阅读(155)
评论(0)
推荐(0)
2015年4月24日
KMP(http://acm.hdu.edu.cn/showproblem.php?pid=1711)
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1711#include#include#include#includeint a[1000010], b[10010], next[10010];int n, m;void GetNext(int b[])//获得...
阅读全文
posted @ 2015-04-24 11:06 午夜阳光~
阅读(205)
评论(0)
推荐(0)
2015年4月23日
HDOJ_1010 Tempter of the Bone
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1010奇偶剪枝:可以把map看成这样: 0 1 0 1 0 1 1 0 1 0 1 0 0 1 0 1 0 1 1 0 1 0 1 0 0 1 0 1 0 1 从为 0 的格子走一步,必然走向为 1 的格子 从为 ...
阅读全文
posted @ 2015-04-23 12:24 午夜阳光~
阅读(138)
评论(0)
推荐(0)
2015年4月20日
矩阵旋转
摘要: 题目大意:只包含01的图片顺时针旋转,角度只包含0度,90度,180度,270度
阅读全文
posted @ 2015-04-20 11:52 午夜阳光~
阅读(172)
评论(0)
推荐(0)
2015年4月18日
HDU 2544 最短路 http://acm.hdu.edu.cn/showproblem.php?pid=2544
摘要: //代码://方法1:Dijkstra's Algorithm#include#include#include#define INF 0xfffffff#define N 110#define min(a, b)(a d[x] + maps[x][j]) d[j] =...
阅读全文
posted @ 2015-04-18 17:44 午夜阳光~
阅读(210)
评论(0)
推荐(0)
题目连接:http://acm.zznu.edu.cn/problem.php?id=1329
摘要: 题目大意:定理:把一个至少两位的正整数的个位数字去掉,再从余下的数中减去个位数的5倍。当且仅当差是17的倍数时,原数也是17的倍数 。例如,34是17的倍数,因为3-20=-17是17的倍数;201不是17的倍数,因为20-5=15不是17的倍数。输入一个正整数n,判断n是否能被17整除代码:#in...
阅读全文
posted @ 2015-04-18 00:25 午夜阳光~
阅读(702)
评论(0)
推荐(0)
2015年4月16日
队列/优先队列(代码简单模式)
摘要: #include#include//头文件using namespace std;int main(){ queueQ;//队列定义 int n, i, t; while(scanf("%d", &n) != EOF) { for(i = 1 ; i pq;这...
阅读全文
posted @ 2015-04-16 12:53 午夜阳光~
阅读(235)
评论(0)
推荐(0)
上一页
1
···
11
12
13
14
15
公告