![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
思维
「已注销」
这个作者很懒,什么都没留下…
展开
-
CodeForces - 1244D Paint the Tree
You are given a tree consisting ofnnvertices. A tree is an undirected connected acyclic graph. Example of a tre...原创 2019-10-19 11:11:35 · 222 阅读 · 0 评论 -
CodeForces - 1244E Minimizing Difference ()
You are given a sequencea1,a2,…,ana1,a2,…,anconsisting ofnnintegers.You may perform the following operation on this sequence: choose any element and either increase or decrease it by one.Calcu...原创 2019-10-19 10:56:48 · 201 阅读 · 0 评论 -
H - Students in Railway Carriage
There are nn consecutive seat places in a railway carriage. Each place is either empty or occupied by a passenger.The university team for the Olympiad consists of aa student-programmers and bb stude...原创 2019-06-04 15:42:49 · 153 阅读 · 0 评论 -
POJ - 2499 Binary Tree
BackgroundBinary trees are a common data structure in computer science. In this problem we will look at an infinite binary tree where the nodes contain a pair of integers. The tree is constructed li...原创 2019-07-29 21:25:59 · 124 阅读 · 0 评论 -
HDU-1214 圆桌会议
HDU ACM集训队的队员在暑假集训时经常要讨论自己在做题中遇到的问题.每当面临自己解决不了的问题时,他们就会围坐在一张圆形的桌子旁进行交流,经过大家的讨论后一般没有解决不了的问题,这也只有HDU ACM集训队特有的圆桌会议,有一天你也可以进来体会一下哦:),在一天在讨论的时候,Eddy想出了一个极为古怪的想法,如果他们在每一分钟内,一对相邻的两个ACM队员交换一下位子,那么要多少时间才能得到与原...原创 2019-07-21 15:05:07 · 113 阅读 · 0 评论