- 博客(49)
- 收藏
- 关注
原创 GCD and LCM
GCD and LCM原题链接 http://acm.hdu.edu.cn/showproblem.php?pid=4497Given two positive integers G and L, could you tell me how many solutions of (x...
2018-09-02 21:58:28
448
原创 统计难题
统计难题原题链接 http://acm.hdu.edu.cn/showproblem.php?pid=1251Ignatius最近遇到一个难题,老师交给他很多单词(只有小写字母组成,不会有重复的单词出现),现...
2018-09-02 21:49:28
577
原创 两点
两点原题链接 https://www.51nod.com/onlineJudge/questionCode.html#!problemId=1416福克斯在玩一款手机解迷游戏,这个游戏叫做”两点”。基础级别的时候是在一个n×m单元上玩的。像这样: 每一个单元有...
2018-09-02 21:29:25
351
1
原创 Super Jumping! Jumping! Jumping!
Super Jumping! Jumping! Jumping!原题链接 http://acm.hdu.edu.cn/showproblem.php?pid=1087Nowadays, a kind of chess game called “Super Jumping! Jumping! Jumping!” is v...
2018-08-27 21:54:21
401
原创 Robot Rapping Results Report
Robot Rapping Results Report 原题链接 http://codeforces.com/problemset/problem/645/DWhile Farmer John rebuilds his farm in an unfamiliar portion of Bovinia, Bessie i...
2018-08-27 21:49:41
187
原创 超级密码
超级密码原题链接 http://acm.hdu.edu.cn/showproblem.php?pid=1226Ignatius花了一个星期的时间终于找到了传说中的宝藏,宝藏被放在一个房间里,房间的门用密码锁起来了,在门旁边的墙上有一些关于密码的提示信息: 密码是一个C进制的...
2018-08-27 21:41:13
1665
原创 Anniversary party
Anniversary party原题链接 http://poj.org/problem?id=2342There is going to be a party to celebrate the 80-th Anniversary of the Ural State University. The...
2018-08-27 21:30:40
270
原创 S-Trees
S-Trees原题链接 https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=653 A Strange Tr...
2018-08-27 21:15:31
403
原创 度度熊学队列
度度熊学队列原题链接 http://acm.hdu.edu.cn/showproblem.php?pid=6375度度熊正在学习双端队列,他对其翻转和合并产生了很大的兴趣。 初始时有 NN 个空的双端队列(编号为 11 到 NN ),你要支持度度熊的 QQ 次操作。 ①11 u...
2018-08-27 20:58:01
351
原创 The Falling Leaves
The Falling Leaves原题链接 https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=640 Each year,...
2018-08-27 20:44:55
310
原创 Tree
Tree原题链接 https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=489 You are to d...
2018-08-27 20:27:46
272
原创 Not so Mobile
Not so Mobile原题链接 https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=780 Before being a...
2018-08-27 20:13:27
276
原创 The order of a Tree
The order of a Tree原题链接 http://acm.hdu.edu.cn/showproblem.php?pid=3999As we know,the shape of a binary search tree is greatly related to the orde...
2018-08-27 19:21:58
254
原创 Trees on the level
Trees on the level原题链接 http://acm.hdu.edu.cn/showproblem.php?pid=1622Trees are fundamental in many branches of computer science. Current state-of-...
2018-08-26 21:45:03
182
原创 二叉搜索树
二叉搜索树原题链接 http://acm.hdu.edu.cn/showproblem.php?pid=3791判断两序列是否为同一二叉搜索树序列Input开始一个数n,(1<=n<=20) 表示有n个需要判断,n= 0 的时候输入结束。 接下去一行是一个序...
2018-08-26 21:21:38
224
原创 Functions again
Functions again 原题链接 http://codeforces.com/problemset/problem/789/CSomething happened in Uzhlyandia again... There are riots on the streets... F...
2018-08-19 21:58:02
334
原创 Mr. Kitayuta's Colorful Graph
Mr. Kitayuta's Colorful Graph原题链接 http://acm.hdu.edu.cn/showproblem.php?pid=3999Mr. Kitayuta has just bought an undirected graph consisting of n vertices an...
2018-08-19 21:36:39
306
原创 Fox And Names
Fox And Names原题链接 http://codeforces.com/problemset/problem/510/CFox Ciel is going to publish a paper on FOCS (Foxes Operated Computer Systems...
2018-08-17 21:45:02
234
原创 Slim Span
Slim Span原题链接 http://poj.org/problem?id=3522Given an undirected weighted graph G, you should find one of spanning trees specified as follows...
2018-08-17 21:26:29
169
原创 Minimum Transport Cost
Minimum Transport Cost原题链接 http://acm.hdu.edu.cn/showproblem.php?pid=1385These are N cities in Spring country. Between each pair of cities there may be ...
2018-08-17 21:10:08
192
原创 Drainage Ditches
Drainage Ditches 原题链接 http://acm.hdu.edu.cn/showproblem.php?pid=1532Every time it rains on Farmer John's fields...
2018-08-17 20:46:41
132
原创 Parity
Parity原题链接 https://www.51nod.com/onlineJudge/questionCode.html#!problemId=1204你的朋友写下一串包含1和0的串让你猜,你可以从中选择一个连续的子串(例如其中的第3到第5个数字)问他,该子串中包含...
2018-08-17 19:59:33
473
原创 Ice_cream's world I
Ice_cream's world I原题链接 http://acm.hdu.edu.cn/showproblem.php?pid=2120ice_cream's world is a rich country, it has many fertile lands. Today, the q...
2018-08-16 21:57:53
393
原创 Wormholes
Wormholes原题链接 http://poj.org/problem?id=3259While exploring his many farms, Farmer John has discovered a number of amazing wormholes. A wormho...
2018-08-14 21:59:49
349
原创 Play on Words
Play on Words原题链接 http://poj.org/problem?id=1386Some of the secret doors contain a very interesting word puzzle. The team of archaeologists has to...
2018-08-14 21:55:06
255
原创 确定比赛名次
确定比赛名次 原题链接 http://acm.hdu.edu.cn/showproblem.php?pid=1285有N个比赛队(1<=N<=500),编号依次为1,2,3,。。。。,N进行比赛,比赛结束后,裁判委员会要将所有参赛队伍从前往后依次排名,但现在裁判委员会不能直接获得...
2018-08-14 21:47:21
254
原创 六度分离
六度分离原题链接 http://acm.hdu.edu.cn/showproblem.php?pid=18691967年,美国著名的社会学家斯坦利·米尔格兰姆提出了一个名为“小世界现象(small world phenomenon)”的著名假说,大意是说,任何2个素不相识的人中...
2018-08-14 21:40:24
753
原创 最短路径问题
最短路径问题原题链接 http://acm.hdu.edu.cn/showproblem.php?pid=3790给你n个点,m条无向边,每条边都有长度d和花费p,给你起点s终点t,要求输出起点到终点的...
2018-08-14 21:28:50
209
原创 畅通工程再续
畅通工程再续原题链接 http://acm.hdu.edu.cn/showproblem.php?pid=1875相信大家都听说一个“百岛湖”的地方吧,百岛湖的居民生活在不同的小岛中,当他们想去其他的小岛时都要通过划小船来实现。现在政府决定大力发展百岛湖,发展首先要解决的问题当然是交通...
2018-08-14 21:17:42
181
原创 数组的最大代价
数组的最大代价原题链接 https://www.51nod.com/onlineJudge/questionCode.html#!problemId=1270数组A包含N个元素A1, A2......AN。数组B包含N个元素B1, B2......BN。并且数组A中的每一个元素Ai,都...
2018-08-09 21:52:22
179
原创 Is It A Tree?
Is It A Tree?原题链接 http://poj.org/problem?id=1308A tree is a well-known data structure that is eith...
2018-08-09 21:42:49
204
原创 B - 小希的迷宫
小希的迷宫原题链接 http://acm.hdu.edu.cn/showproblem.php?pid=1272上次Gardon的迷宫城堡小希玩了很久(见Problem B),现在她也想设计一个迷宫让Gardon来走。但是她设计迷宫的思路不一样,首先她认为所有的通道都应该是双...
2018-08-09 21:32:47
183
原创 FatMouse's Speed
FatMouse's Speed原题链接 http://acm.hdu.edu.cn/showproblem.php?pid=1160FatMouse believes that the fatter a mouse is, the faster it runs. To disprove...
2018-08-05 21:57:05
317
原创 Greatest Common Increasing Subsequence
Greatest Common Increasing Subsequence原题链接 http://acm.hdu.edu.cn/showproblem.php?pid=1423This is a problem from ZOJ 2432.To make it easyer,you just need output the l...
2018-08-05 21:45:30
225
原创 搬寝室
搬寝室原题链接 http://acm.hdu.edu.cn/showproblem.php?pid=1421搬寝室是很累的,xhd深有体会.时间追述2006年7月9号,那天xhd迫于无奈要从27号楼搬到3号楼,因为10号要封楼了.看着寝室里的n件物品,xhd开始发呆,因为...
2018-08-05 21:41:51
266
原创 饭卡
饭卡原题链接 http://acm.hdu.edu.cn/showproblem.php?pid=2546电子科大本部食堂的饭卡有一种很诡异的设计,即在购买之前判断余额。如果购买一个商品之前,卡上的剩余金额大于或等于5元,就一定可以购买成功(即使购买后卡上余额为负),否...
2018-08-05 21:26:01
270
原创 Two Strings Swaps
Two Strings Swaps原题链接 http://codeforces.com/problemset/problem/1006/DYou are given two strings a and b consisting of lowercase English letters,...
2018-08-02 21:46:01
384
原创 Bridging signals
Bridging signals原题链接 http://poj.org/problem?id=1631'Oh no, they've done it again', cries the chief designer at the Waferland chip factory. Once more...
2018-08-02 21:28:22
157
原创 Palindrome
Palindrome原题链接 http://poj.org/problem?id=1159A palindrome is a symmetrical string, that is, a string read identically from left to right as we...
2018-08-02 21:00:41
122
原创 Free Candies
Free Candies原题链接 https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=s...
2018-07-29 21:11:07
519
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人