会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
hr_whisper
新 blog :
www.hrwhisper.me
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
6
7
8
9
10
11
12
13
14
···
34
下一页
2014年2月10日
poj 3100 (zoj 2818)||ZOJ 2829 ||ZOJ 1938 (poj 2249)
摘要: 水题三题:1.给你B和N,求个整数A使得A^n最接近B2. 输出第N个能被3或者5整除的数3.给你整数n和k,让你求组合数c(n,k)1.poj 3100 (zoj 2818) Root of the Problem:http://acm.zju.edu.cn/onlinejudge/showPro...
阅读全文
posted @ 2014-02-10 00:13 hr_whisper
阅读(193)
评论(0)
推荐(0)
2014年2月9日
UVA 10891 - Game of Sum DP
摘要: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1832题目大意:有一个长度为n的整数序列,A和B轮流取数,A先取,每次可以从左端或者右端取一个或多个数,所有...
阅读全文
posted @ 2014-02-09 22:27 hr_whisper
阅读(106)
评论(0)
推荐(0)
UVA 10635 - Prince and Princess LCS转化为LIS
摘要: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1576题目大意:有两串长度分别为p+1和q+1的序列,每个序列中的各个元素互不相同,且都是1~n*n之间的整...
阅读全文
posted @ 2014-02-09 21:05 hr_whisper
阅读(172)
评论(0)
推荐(0)
2014年2月8日
zoj 2724 Windows Message Queue 优先队列
摘要: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=1724题目大意:给出两种操作,GET要求取出当前队首的元素,而PUT会输入名称、值、还有优先值。思路:优先队列即可。水。。#include#include#includeusing...
阅读全文
posted @ 2014-02-08 23:47 hr_whisper
阅读(168)
评论(0)
推荐(0)
ZOJ 2421 Recaman's Sequence
摘要: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=1421题目大意:定义a^m为a^m = a^(m-1) - m 如果a^m 为正且没有出现过。否则a^m = a^(m-1) + m 。给你k,让你求a^k思路:打表。k最大为50...
阅读全文
posted @ 2014-02-08 21:51 hr_whisper
阅读(156)
评论(0)
推荐(0)
2014年2月7日
POJ 1595 Prime Cuts (ZOJ 1312) 素数打表
摘要: ZOJ:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=312POJ:http://poj.org/problem?id=1595题目大意:给你两个数n和c,如果1~n(包括1和n)之间的素数个数为偶数个,则输出中间c*2个素数否...
阅读全文
posted @ 2014-02-07 23:34 hr_whisper
阅读(145)
评论(0)
推荐(0)
2014年2月6日
ZOJ 1489 2^x mod n = 1 数论
摘要: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=489题目大意:给你正整数n,求最小的x使得2^x mod n = 1。思路:n=1无解。任何正数mod 1都为0吧n为偶数无解,why? 上式可变形为: 2^x=k*n+1,若n为...
阅读全文
posted @ 2014-02-06 23:10 hr_whisper
阅读(220)
评论(0)
推荐(0)
UVA 10054 - The Necklace 欧拉回路
摘要: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=995题目大意:有一种由彩色珠子组成的项链,每个珠子的两半由不同的颜色组成,相邻的两个珠子在接触的地方颜色相同...
阅读全文
posted @ 2014-02-06 22:34 hr_whisper
阅读(154)
评论(0)
推荐(0)
UVA 10047 - The Monocycle BFS
摘要: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=988题目大意:独轮车的车轮被分为5个扇形,分别涂上一种不同的颜色,现在有一个人行驶在M*N的玩个平面上。每个...
阅读全文
posted @ 2014-02-06 21:06 hr_whisper
阅读(195)
评论(0)
推荐(0)
UVA 10791 - Minimum Sum LCM
摘要: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1732题目大意:输入正整数n,(n a+ b (a, b > 2) 这是必然的吧 。 所以只要把没中素数的n...
阅读全文
posted @ 2014-02-06 00:05 hr_whisper
阅读(151)
评论(0)
推荐(0)
上一页
1
···
6
7
8
9
10
11
12
13
14
···
34
下一页
公告