上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 20 下一页
摘要: 3083: 遥远的国度 Description 描述zcwwzdjn在追杀十分sb的zhx,而zhx逃入了一个遥远的国度。当zcwwzdjn准备进入遥远的国度继续追杀时,守护神RapiD阻拦了zcwwzdjn的去路,他需要zcwwzdjn完成任务后才能进入遥远的国度继续追杀。 问题是这样的:遥远的国 阅读全文
posted @ 2018-10-30 00:01 StarHai 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 3065: 带插入区间K小值 Description 从前有n只跳蚤排成一行做早操,每只跳蚤都有自己的一个弹跳力a[i]。跳蚤国王看着这些跳蚤国欣欣向荣的情景,感到非常高兴。这时跳蚤国王决定理性愉悦一下,查询区间k小值。他每次向它的随从伏特提出这样的问题: 从左往右第x个到第y个跳蚤中,a[i]第k 阅读全文
posted @ 2018-10-28 15:59 StarHai 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 3064: Tyvj 1518 CPU监控 Description Bob需要一个程序来监视CPU使用率。这是一个很繁琐的过程,为了让问题更加简单,Bob会慢慢列出今天会在用计算机时做什么事。 Bob会干很多事,除了跑暴力程序看视频之外,还会做出去玩玩和用鼠标乱点之类的事,甚至会一脚踢掉电源……这些 阅读全文
posted @ 2018-10-28 13:28 StarHai 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 3040: 最短路(road) Description N个点,M条边的有向图,求点1到点N的最短路(保证存在)。1<=N<=1000000,1<=M<=10000000 N个点,M条边的有向图,求点1到点N的最短路(保证存在)。1<=N<=1000000,1<=M<=10000000 Input 阅读全文
posted @ 2018-10-25 23:10 StarHai 阅读(411) 评论(0) 推荐(0) 编辑
摘要: 3224: Tyvj 1728 普通平衡树 Description 您需要写一种数据结构(可参考题目标题),来维护一些数,其中需要提供以下操作:1. 插入x数2. 删除x数(若有多个相同的数,因只删除一个)3. 查询x数的排名(若有多个相同的数,因输出最小的排名)4. 查询排名为x的数5. 求x的前 阅读全文
posted @ 2018-10-18 00:06 StarHai 阅读(197) 评论(0) 推荐(0) 编辑
摘要: Description 请写一个程序,要求维护一个数列,支持以下 6 种操作: 请注意,格式栏 中的下划线‘ _ ’表示实际输入文件中的空格 请写一个程序,要求维护一个数列,支持以下 6 种操作: 请注意,格式栏 中的下划线‘ _ ’表示实际输入文件中的空格 Input 输入的第1 行包含两个数N 阅读全文
posted @ 2018-10-18 00:03 StarHai 阅读(294) 评论(0) 推荐(0) 编辑
摘要: Description 小 X 自幼就很喜欢数。但奇怪的是,他十分讨厌完全平方数。他觉得这些数看起来很令人难受。由此,他也讨厌所有是完全平方数的正整数倍的数。然而这丝毫不影响他对其他数的热爱。 这天是小X的生日,小 W 想送一个数给他作为生日礼物。当然他不能送一个小X讨厌的数。他列出了所有小X不讨厌 阅读全文
posted @ 2018-10-18 00:00 StarHai 阅读(440) 评论(0) 推荐(1) 编辑
摘要: 2301: [HAOI2011]Problem b Description 对于给出的n个询问,每次求有多少个数对(x,y),满足a≤x≤b,c≤y≤d,且gcd(x,y) = k,gcd(x,y)函数为x和y的最大公约数。 Input 第一行一个整数n,接下来n行每行五个整数,分别表示a、b、c、 阅读全文
posted @ 2018-10-14 20:49 StarHai 阅读(227) 评论(0) 推荐(0) 编辑
摘要: PUBG is a multiplayer online battle royale video game. In the game, up to one hundred players parachute onto an island and scavenge for weapons and eq 阅读全文
posted @ 2018-10-14 20:34 StarHai 阅读(367) 评论(0) 推荐(0) 编辑
摘要: BaoBao is trapped in a one-dimensional maze consisting of grids arranged in a row! The grids are numbered from 1 to from left to right, and the -th gr 阅读全文
posted @ 2018-10-14 20:30 StarHai 阅读(233) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers , we say a set is a prime set of the given array, if and is prime. BaoBao has just found an array of integers in his pocket 阅读全文
posted @ 2018-10-14 20:25 StarHai 阅读(593) 评论(0) 推荐(1) 编辑
摘要: DreamGrid has a nonnegative integer . He would like to divide into nonnegative integers and minimizes their bitwise or (i.e. and should be as small as 阅读全文
posted @ 2018-10-14 20:18 StarHai 阅读(599) 评论(0) 推荐(0) 编辑
摘要: BaoBao has just found a string of length consisting of 'C' and 'P' in his pocket. As a big fan of the China Collegiate Programming Contest, BaoBao thi 阅读全文
posted @ 2018-10-14 20:09 StarHai 阅读(418) 评论(0) 推荐(0) 编辑
摘要: Crusaders Quest is an interesting mobile game. A mysterious witch has brought great darkness to the game world, and the only hope for your kingdom is 阅读全文
posted @ 2018-10-14 20:07 StarHai 阅读(704) 评论(0) 推荐(0) 编辑
摘要: The 2017 China Collegiate Programming Contest Qinhuangdao Site is coming! There will be teams participating in the contest, and the contest will be he 阅读全文
posted @ 2018-10-14 20:05 StarHai 阅读(561) 评论(0) 推荐(0) 编辑
摘要: Consider a un-rooted tree T which is not the biological significance of tree or plant, but a tree as an undirected graph in graph theory with n nodes, 阅读全文
posted @ 2018-10-14 01:16 StarHai 阅读(564) 评论(0) 推荐(0) 编辑
摘要: Here N (N ≥ 3) rabbits are playing by the river. They are playing on a number line, each occupying a different integer. In a single move, one of the o 阅读全文
posted @ 2018-10-14 01:14 StarHai 阅读(537) 评论(0) 推荐(0) 编辑
摘要: Little boxes on the hillside. Little boxes made of ticky-tacky. Little boxes. Little boxes. Little boxes all the same. There are a green boxes, and b 阅读全文
posted @ 2018-10-14 01:12 StarHai 阅读(572) 评论(0) 推荐(0) 编辑
摘要: The ant Welly now dedicates himself to urban infrastructure. He came to the kingdom of numbers and solicited an audience with the king. He recounted h 阅读全文
posted @ 2018-10-14 01:10 StarHai 阅读(540) 评论(0) 推荐(0) 编辑
摘要: A triangle is a Heron’s triangle if it satisfies that the side lengths of it are consecutive integers t&#8722;1, t, t+ 1 and thatits area is an intege 阅读全文
posted @ 2018-10-14 01:07 StarHai 阅读(457) 评论(0) 推荐(0) 编辑
摘要: Description 七夕祭上,Vani牵着cl的手,在明亮的灯光和欢乐的气氛中愉快地穿行。这时,在前面忽然出现了一台太鼓达人机台,而在机台前坐着的是刚刚被精英队伍成员XLk、Poet_shy和lydrainbowcat拯救出来的的applepi。看到两人对太鼓达人产生了兴趣,applepi果断闪 阅读全文
posted @ 2018-10-11 01:01 StarHai 阅读(385) 评论(1) 推荐(0) 编辑
摘要: Just A Mistake Time Limit: 5000/5000 MS (Java/Others) Memory Limit: 512000/512000 K (Java/Others)Total Submission(s): 168 Accepted Submission(s): 41 P 阅读全文
posted @ 2018-09-26 22:55 StarHai 阅读(356) 评论(0) 推荐(0) 编辑
摘要: Intersection Time Limit: 4000/4000 MS (Java/Others) Memory Limit: 512000/512000 K (Java/Others)Total Submission(s): 4238 Accepted Submission(s): 1623 阅读全文
posted @ 2018-09-26 22:54 StarHai 阅读(261) 评论(0) 推荐(0) 编辑
摘要: Happy Matt Friends Time Limit: 6000/6000 MS (Java/Others) Memory Limit: 510000/510000 K (Java/Others)Total Submission(s): 5248 Accepted Submission(s): 阅读全文
posted @ 2018-09-26 22:53 StarHai 阅读(287) 评论(0) 推荐(0) 编辑
摘要: Fluorescent Time Limit: 3000/3000 MS (Java/Others) Memory Limit: 512000/512000 K (Java/Others)Total Submission(s): 937 Accepted Submission(s): 477 Pro 阅读全文
posted @ 2018-09-26 22:44 StarHai 阅读(414) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 20 下一页