
题解报告
二硫碘化钾kk
这个作者很懒,什么都没留下…
展开
-
贪心-H Wooden Sticks
There is a pile of n wooden sticks. The length and weight of each stick are known in advance. The sticks are to be processed by a woodworking machine in one by one fashion. It needs some time, called...原创 2019-03-23 17:56:47 · 194 阅读 · 0 评论 -
经典DP-U
不死族的巫妖王发工资拉,死亡骑士拿到一张N元的钞票(记住,只有一张钞票),为了防止自己在战斗中频繁的死掉,他决定给自己买一些道具,于是他来到了地精商店前.死亡骑士:“我要买道具!”地精商人:“我们这里有三种道具,血瓶150块一个,魔法药200块一个,无敌药水350块一个.”死亡骑士:“好的,给我一个血瓶.”说完他掏出那张N元的大钞递给地精商人.地精商人:“我忘了提醒你了,我们这里没有找...原创 2019-03-28 19:36:38 · 156 阅读 · 0 评论 -
经典DP-B 最大子段和
Given a sequence a[1],a[2],a[3]…a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7), the max sum in this sequence is 6 + (-1) + 5 + 4 = 14.InputThe firs...原创 2019-03-30 10:04:14 · 192 阅读 · 0 评论 -
经典DP-O Humble Numbers
A number whose only prime factors are 2,3,5 or 7 is called a humble number. The sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 15, 16, 18, 20, 21, 24, 25, 27, … shows the first 20 humble numbers.Wr...原创 2019-03-30 11:11:58 · 112 阅读 · 0 评论 -
经典DP-Q 救灾
急!灾区的食物依然短缺!为了挽救灾区同胞的生命,心系灾区同胞的你准备自己采购一些粮食支援灾区,现在假设你一共有资金n元,而市场有m种大米,每种大米都是袋装产品,其价格不等,并且只能整袋购买。请问:你用有限的资金最多能采购多少公斤粮食呢?后记: 人生是一个充满了变数的生命过程,天灾、人祸、病痛是我们生命历程中不可预知的威胁。 月有阴晴圆缺,人有旦夕祸福,未来对于我们而言是一个未知数。那么,...原创 2019-04-02 18:49:52 · 280 阅读 · 0 评论 -
背包-A MilkingTime
Bessie is such a hard-working cow. In fact, she is so focused on maximizing her productivity that she decides to schedule her next N (1 ≤ N ≤ 1,000,000) hours (conveniently labeled 0…N-1) so that she...原创 2019-04-09 19:54:35 · 144 阅读 · 0 评论 -
区间DP-G 括号匹配
We give the following inductive definition of a “regular brackets” sequence: the empty sequence is a regular brackets sequence, if s is a regular brackets sequence, then (s) and [s] are regular brac...原创 2019-04-09 20:55:29 · 157 阅读 · 0 评论 -
区间DP-J Multiplication Puzzle
The multiplication puzzle is played with a row of cards, each containing a single positive integer. During the move player takes one card out of the row and scores the number of points equal to the pr...原创 2019-04-14 15:33:50 · 107 阅读 · 0 评论 -
CodeForces - 218C Ice Skating
Ice SkatingBajtek is learning to skate on ice. He’s a beginner, so his only mode of transportation is pushing off from a snow drift to the north, east, south or west and sliding until he lands in ano...原创 2019-07-23 09:18:01 · 160 阅读 · 0 评论 -
CodeForces - 224B Array
ArrayYou’ve got an array a, consisting of n integers: a1, a2, …, an. Your task is to find a minimal by inclusion segment [l, r] (1 ≤ l ≤ r ≤ n) such, that among numbers al, al + 1, …, ar there are...原创 2019-07-25 15:03:31 · 212 阅读 · 0 评论 -
CodeForces 227C Flying Saucer Segments
Flying Saucer SegmentsAn expedition group flew from planet ACM-1 to Earth in order to study the bipedal species (its representatives don’t even have antennas on their heads!).The flying saucer, on w...原创 2019-07-26 10:01:55 · 160 阅读 · 0 评论 -
动态中位数
动态中位数依次读入一个整数序列,每当已经读入的整数个数为奇数时,输出已读入的整数构成的序列的中位数。输入格式第一行输入一个整数P,代表后面数据集的个数,接下来若干行输入各个数据集。每个数据集的第一行首先输入一个代表数据集的编号的整数。然后输入一个整数M,代表数据集中包含数据的个数,M一定为奇数,数据之间用空格隔开。数据集的剩余行由数据集的数据构成,每行包含10个数据,最后一行数据量可能...原创 2019-08-08 21:07:24 · 495 阅读 · 0 评论 -
贪心-D
Farmer John has a problem: the dirt road from his farm to town has suffered in the recent rainstorms and now contains (1 <= N <= 10,000) mud pools.Farmer John has a collection of wooden planks...原创 2019-03-19 20:15:42 · 143 阅读 · 0 评论 -
贪心-C
Assume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point locating in the sea side. And any radar installation, locating on the...原创 2019-03-18 17:07:58 · 219 阅读 · 0 评论 -
贪心-J
Ignatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher gives him a deadline of handing in the homework. If Ignatius hands in the homework after t...原创 2019-03-17 11:24:11 · 117 阅读 · 0 评论 -
CodeForces - 242C King's Path
King’s PathThe black king is standing on a chess field consisting of 109 rows and 109 columns. We will consider the rows of the field numbered with integers from 1 to 109 from top to bottom. The colu...原创 2019-08-03 09:45:13 · 152 阅读 · 0 评论 -
STL-F&V Ugly Numbers
F:Ugly numbers are numbers whose only prime factors are 2, 3 or 5. Thesequence 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, … shows the first 11ugly numbers. By convention, 1 is included. Write a program t...原创 2019-03-06 15:31:42 · 166 阅读 · 0 评论 -
STL-C
Andy, 8, has a dream - he wants to produce his very own dictionary.This is not an easy task for him, as the number of words that he knowsis, well, not quite enough. Instead of thinking up all the w...原创 2019-03-06 21:20:10 · 277 阅读 · 0 评论 -
STL-H 排列
Ray又对数字的列产生了兴趣: 现有四张卡片,用这四张卡片能排列出很多不同的4位数,要求按从小到大的顺序输出这些4位数。Input每组数据占一行,代表四张卡片上的数字(0<=数字<=9),如果四张卡片都是0,则输入结束。Output对每组卡片按从小到大的顺序输出所有能由这四张卡片组成的4位数,千位数字相同的在同一行,同一行中每个四位数间用空格分隔。每组输出数据间空...原创 2019-03-07 21:19:02 · 603 阅读 · 0 评论 -
STL-J 排列
Now our hero finds the door to the BEelzebub feng5166. He opens the door and finds feng5166 is about to kill our pretty Princess. But now the BEelzebub has to beat our hero first. feng5166 says, “I h...原创 2019-03-09 10:50:21 · 231 阅读 · 0 评论 -
STL-D
Most crossword puzzle fans are used to anagrams — groups of words with the same letters in differentorders — for example OPTS, SPOT, STOP, POTS and POST. Some words however do not have thisattribute...原创 2019-03-09 22:04:33 · 142 阅读 · 0 评论 -
STL-B The Blocks Problem
Many areas of Computer Science use simple, abstract domains for both analytical and empirical studies. For example, an early AI study of planning and robotics (STRIPS) used a block world in which a r...原创 2019-03-10 22:33:19 · 170 阅读 · 0 评论 -
STL-Q
Our chemical biologists have invented a new very useful form of life called stripies (in fact, they were first called in Russian polosatiki, but the scientists had to invent an English name to apply ...原创 2019-03-11 17:04:25 · 154 阅读 · 0 评论 -
贪心-F FatMouse's Trade
FatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his favorite food, JavaBean. The warehouse has N rooms. The i-th room contains J[i] pounds of J...原创 2019-03-14 20:38:35 · 269 阅读 · 0 评论 -
贪心-A
这个题和贪心算法好像没有关系。。。Farmer John has received a noise complaint from his neighbor, Farmer Bob, stating that his cows are making too much noise.FJ’s N cows (1 <= N <= 10,000) all graze at various ...原创 2019-03-16 09:29:45 · 169 阅读 · 0 评论 -
贪心-B
A supermarket has a set Prod of products on sale. It earns a profit px for each product x∈Prod sold by a deadline dx that is measured as an integral number of time units starting from the moment the ...原创 2019-03-16 11:36:27 · 200 阅读 · 0 评论 -
贪心-G Moving Tables
The famous ACM (Advanced Computer Maker) Company has rented a floor of a building whose shape is in the following figure.The floor has 200 rooms each on the north side and south side along the corri...原创 2019-03-16 20:46:11 · 247 阅读 · 0 评论 -
CodeForces - 231C To Add or Not to Add
To Add or Not to AddA piece of paper contains an array of n integers a1, a2, …, an. Your task is to find a number that occurs the maximum number of times in this array.However, before looking for su...原创 2019-07-30 10:19:55 · 179 阅读 · 0 评论