
----二分
文章平均质量分 83
_Occult_
物語が始まった
展开
-
HDU 5200 Trees
Problem DescriptionToday CodeFamer is going to cut trees.There are N trees standing in a line. They are numbered from 1 to N. The tree numbered i has height hi. We say that two uncutted tr原创 2015-04-05 01:33:06 · 530 阅读 · 0 评论 -
HDU 5682 zxa and leaf
Problem Descriptionzxa have an unrooted tree with n nodes, including (n−1) undirected edges, whose nodes are numbered from 1 to n. The degree of each node is defined as the number of the edg原创 2016-05-14 22:20:34 · 852 阅读 · 0 评论 -
ZOJ 3940 Modulo Query
Modulo QueryTime Limit: 2 Seconds Memory Limit: 65536 KBOne day, Peter came across a function which looks like:F(1, X) = X mod A1.F(i, X) = F(i - 1, X) mod Ai, 2 ≤ i ≤ N.Where A is原创 2016-04-23 23:49:22 · 814 阅读 · 0 评论 -
HDU 5694 BD String
Problem Description众所周知,度度熊喜欢的字符只有两个:B和D。今天,它发明了一种用B和D组成字符串的规则:S(1)=BS(2)=BBDS(3)=BBDBBDD…S(n)=S(n−1)+B+reverse(flip(S(n−1))其中,reverse(s)指将字符串翻转,比如reverse(BBD)=DBB,flip原创 2016-05-21 19:16:11 · 593 阅读 · 0 评论 -
HDU 5769 Substring
Problem Description?? is practicing his program skill, and now he is given a string, he has to calculate the total number of its distinct substrings. But ?? thinks that is too easy, he wants to原创 2016-07-30 12:49:04 · 608 阅读 · 0 评论 -
POJ 3111 K Best
DescriptionDemy has n jewels. Each of her jewels has some value vi and weight wi.Since her husband John got broke after recent financial crises, Demy has decided to sell some jewels. She has d原创 2016-09-01 18:35:32 · 514 阅读 · 0 评论 -
CodeForces 140C New Year Snowmen
As meticulous Gerald sets the table and caring Alexander sends the postcards, Sergey makes snowmen. Each showman should consist of three snowballs: a big one, a medium one and a small one. Sergey's tw原创 2017-03-02 12:26:05 · 420 阅读 · 0 评论 -
HDU 4717 The Moving Points
There are N points in total. Every point moves in certain direction and certain speed. We want to know at what time that the largest distance between any two points would be minimum. And also, we requ原创 2017-04-04 20:47:50 · 251 阅读 · 0 评论 -
HDU 4721 Food and Productivity
In the Game Civilization X, the world is made up of square-shaped "tiles", forming a rectangle on the world map. For a tile located at row X and column Y , we give it a coordinate, say (X, Y ). As y原创 2017-04-04 21:00:25 · 618 阅读 · 0 评论 -
HDU 5676 ztr loves lucky numbers
Problem Descriptionztr loves lucky numbers. Everybody knows that positive integers are lucky if their decimal representation doesn't contain digits other than 4 and 7. For example, numbers 47, 744原创 2016-05-02 19:31:23 · 495 阅读 · 0 评论 -
HDU 5699 货物运输
Problem Description公元2222年,l国发生了一场战争。小Y负责领导工人运输物资。其中有m种物资的运输方案,每种运输方案形如li,ri。表示存在一种货物从li运到ri。这里有n个城市,第i个城市与第i+1个城市相连(这里1号城市和n号城市并不相连),并且从i号城市走到i+1号或者从i+1号走到i号需要耗费1点时间。由于高科技的存在,小Y想到了一原创 2016-05-23 11:49:37 · 1189 阅读 · 2 评论 -
POJ 2104 K-th Number
DescriptionYou are working for Macrohard company in data structures department. After failing your previous task about key insertion you were asked to write a new data structure that would be ab原创 2016-02-13 15:32:41 · 643 阅读 · 0 评论 -
UVA 10341 Solve It
Memory Limit: 32 MBSolve the equation: p*e-x+ q*sin(x) + r*cos(x) + s*tan(x) + t*x2 + u = 0 where 0 x InputInput consists of multiple test cases and terminated by an EOF. Each原创 2015-02-18 13:43:34 · 397 阅读 · 0 评论 -
HDU 2852 KiKi's K-Number
Problem DescriptionFor the k-th number, we all should be very familiar with it. Of course,to kiki it is also simple. Now Kiki meets a very similar problem, kiki wants to design a container, the co原创 2015-02-20 13:21:05 · 473 阅读 · 0 评论 -
HDU 1969 Pie
Problem DescriptionMy birthday is coming up and traditionally I'm serving pie. Not just one pie, no, I have a number N of them, of various tastes and of various sizes. F of my friends are coming t原创 2015-02-19 17:05:01 · 384 阅读 · 0 评论 -
HDU 3586 Information Disturbing
Problem DescriptionIn the battlefield , an effective way to defeat enemies is to break their communication system.The information department told you that there are n enemy soldiers and their ne原创 2015-03-05 11:48:17 · 589 阅读 · 0 评论 -
HDU 5265 pog loves szh II
Problem DescriptionPog and Szh are playing games. There is a sequence with n numbers, Pog will choose a number A from the sequence. Szh will choose an another number named B from the rest in the原创 2015-06-07 21:23:51 · 563 阅读 · 2 评论 -
HDU 3681 Prison Break
Problem DescriptionRompire is a robot kingdom and a lot of robots live there peacefully. But one day, the king of Rompire was captured by human beings. His thinking circuit was changed by human an原创 2015-07-18 23:13:36 · 418 阅读 · 0 评论 -
HDU 5432 Pyramid Split
Problem DescriptionXiao Ming is a citizen who's good at playing,he has lot's of gold cones which have square undersides,let's call them pyramids.Anyone of them can be defined by the square's l原创 2015-09-16 13:29:10 · 582 阅读 · 0 评论 -
PAT (Advanced Level) Practise 1018 Public Bike Management (30)
1018. Public Bike Management (30)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThere is a public bike service in H原创 2016-03-04 19:57:59 · 932 阅读 · 0 评论 -
CSU 1568 Shrine Maintenance
A religious sect has holy sites with shrines placed around a circle of radius 1000. The circle is split into N equal length arcs and the endpoints are numbered in order, 1 through N. The first figure原创 2017-07-29 20:01:59 · 366 阅读 · 0 评论