随笔分类 -  online judge HDU

上一页 1 2 3 4 5 6 7 8 ··· 16 下一页
摘要:瞬间移动 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5698 Description 有一个无限大的矩形,初始时你在左上角(即第一行第一列),每次你都可以选择一个右下方格子,并瞬移过去(如从下图中的红色格子能直接瞬移到蓝色格子),求到第n行第m列 阅读全文
posted @ 2016-05-24 09:43 qscqesze 阅读(389) 评论(0) 推荐(0)
摘要:区间的价值 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5696 Description 我们定义“区间的价值”为一段区间的最大值 最小值。 一个区间左端点在L,右端点在R,那么该区间的长度为(R−L+1)。 现在聪明的杰西想要知道,对于长度为k的 阅读全文
posted @ 2016-05-24 09:32 qscqesze 阅读(993) 评论(3) 推荐(1)
摘要:Gym Class 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5695 Description 众所周知,度度熊喜欢各类体育活动。 今天,它终于当上了梦寐以求的体育课老师。第一次课上,它发现一个有趣的事情。在上课之前,所有同学要排成一列, 假设最 阅读全文
posted @ 2016-05-22 10:49 qscqesze 阅读(312) 评论(0) 推荐(0)
摘要:BD String 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5694 Description Problem Description 众所周知,度度熊喜欢的字符只有两个:B和D。 今天,它发明了一种用B和D组成字符串的规则: S(1)=B S( 阅读全文
posted @ 2016-05-22 10:47 qscqesze 阅读(381) 评论(0) 推荐(0)
摘要:D Game 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5693 Description 众所周知,度度熊喜欢的字符只有两个:B 和D。 今天,它发明了一个游戏:D游戏。 度度熊的英文并不是很高明,所以这里的D,没什么高深的含义,只是代指等差数列 阅读全文
posted @ 2016-05-22 10:35 qscqesze 阅读(687) 评论(0) 推荐(0)
摘要:Snacks 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5692 Description 百度科技园内有n个零食机,零食机之间通过n−1条路相互连通。每个零食机都有一个值v,表示为小度熊提供零食的价值。 由于零食被频繁的消耗和补充,零食机的价值v 阅读全文
posted @ 2016-05-22 08:56 qscqesze 阅读(431) 评论(0) 推荐(0)
摘要:Sitting in Line 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5691 Description 度度熊是他同时代中最伟大的数学家,一切数字都要听命于他。现在,又到了度度熊和他的数字仆人们玩排排坐游戏的时候了。游戏的规则十分简单,参与游 阅读全文
posted @ 2016-05-22 08:53 qscqesze 阅读(467) 评论(2) 推荐(0)
摘要:All X 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5690 Description F(x,m) 代表一个全是由数字x组成的m位数字。请计算,以下式子是否成立: F(x,m) mod k ≡ c Input 第一行一个整数T,表示T组数据。 阅读全文
posted @ 2016-05-22 08:50 qscqesze 阅读(366) 评论(0) 推荐(0)
摘要:Prince and Princess 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=4685 Description There are n princes and m princesses. Princess can marry any prin 阅读全文
posted @ 2016-05-16 15:27 qscqesze 阅读(305) 评论(0) 推荐(1)
摘要:zxa and xor 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5683 Description zxa had a great interest in exclusive disjunction(i.e. XOR) recently, the 阅读全文
posted @ 2016-05-15 19:00 qscqesze 阅读(336) 评论(0) 推荐(0)
摘要:zxa and leaf 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5682 Description zxa have an unrooted tree with n nodes, including (n−1) undirected edges 阅读全文
posted @ 2016-05-15 18:48 qscqesze 阅读(399) 评论(0) 推荐(0)
摘要:zxa and set 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=4681 Description zxa has a set A={a1,a2,⋯,an}, which has n elements and obviously (2n−1) n 阅读全文
posted @ 2016-05-15 18:18 qscqesze 阅读(289) 评论(0) 推荐(0)
摘要:String 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=4681 Description Given 3 strings A, B, C, find the longest string D which satisfy the following 阅读全文
posted @ 2016-05-14 22:16 qscqesze 阅读(224) 评论(0) 推荐(0)
摘要:Sum Of Gcd 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=4676 Description Given you a sequence of number a1, a2, ..., an, which is a permutation of 阅读全文
posted @ 2016-05-14 22:11 qscqesze 阅读(455) 评论(0) 推荐(0)
摘要:MZL's xor 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5344 Description MZL loves xor very much.Now he gets an array A.The length of A is n.He want 阅读全文
posted @ 2016-04-30 21:52 qscqesze 阅读(355) 评论(0) 推荐(0)
摘要:Robot 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5673 Description There is a robot on the origin point of an axis.Every second, the robot can mov 阅读全文
posted @ 2016-04-24 15:59 qscqesze 阅读(588) 评论(0) 推荐(1)
摘要:String 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5672 Description There is a string S.S only contain lower case English character.(10≤length(S)≤ 阅读全文
posted @ 2016-04-24 15:45 qscqesze 阅读(356) 评论(0) 推荐(0)
摘要:Matrix 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5671 Description There is a matrix M that has n rows and m columns (1≤n≤1000,1≤m≤1000).Then we 阅读全文
posted @ 2016-04-24 15:29 qscqesze 阅读(387) 评论(0) 推荐(0)
摘要:Machine 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5670 Description There is a machine with m(2≤m≤30) coloured bulbs and a button.When the button 阅读全文
posted @ 2016-04-24 15:19 qscqesze 阅读(288) 评论(0) 推荐(0)
摘要:2976: [Poi2002]出圈游戏 题目连接: http://www.lydsy.com/JudgeOnline/problem.php?id=2976 Description Input 中第一行有一个正整数n, 2 include include include using namespac 阅读全文
posted @ 2016-04-16 23:46 qscqesze 阅读(447) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 ··· 16 下一页