
思路
文章平均质量分 70
Little__Fairy
这个作者很懒,什么都没留下…
展开
-
LDU暑假集训(三)1262 Problem A A. Maximum Element In A Stack
As an ACM-ICPC newbie, Aishah is learning data structures in computer science. She has already known that a stack, as a data structure, can serve as a collection of elements with two operations:• pu...原创 2018-07-29 10:42:02 · 417 阅读 · 0 评论 -
upc 9300 Problem A AKU NEGARAKU
题目描述1st Academy is an international leadership training academy based in Kuala Lumpur. Every year, the company trains thousands of people to be supplied to companies around the world. To be fair am...原创 2018-10-17 18:17:16 · 382 阅读 · 0 评论 -
upc 8262: LARGEST POINT
题目描述Given the sequence A with n integers t1 , t2 , …… , tn . Given the integral coefficients a and b. The fact that select two elements ti and tj of A and i ≠ j to maximize the value of becomes the...原创 2018-10-10 19:45:15 · 264 阅读 · 0 评论 -
UPC 9260: Almost Sorted Array
题目描述We are all familiar with sorting algorithms: quick sort, merge sort, heap sort, insertion sort, selection sort, bubble sort, etc. But sometimes it is an overkill to use these algorithms for an ...原创 2018-10-14 15:14:14 · 271 阅读 · 0 评论 -
upc7224 Problem J The puzzle
题目描述Kayaking is playing a puzzle game containing n different blocks. He marks the blocks with integers from 1 to n, which show the blocks’ original positions. Each time he can exchange two blocks an...原创 2018-09-13 12:48:26 · 499 阅读 · 0 评论 -
upc7221 Problem G Flower
题目描述Rabbit loves flowers very much and she plants n pots of flowers in her house. But she never prunes them because she is lazy. So the flowers have different heights and look ugly. One day, Kayakin...原创 2018-09-12 19:04:03 · 630 阅读 · 1 评论 -
组队训练赛第五场5058 Problem D Network Report
问题 D: Network Report时间限制: 1 Sec 内存限制: 128 MB提交: 140 解决: 59[提交] [状态] [讨论版] [命题人:admin]题目描述For time efficiency, data transmission is often done along the shortest path (with minimum number of ...原创 2018-08-29 20:47:26 · 164 阅读 · 0 评论 -
组队训练赛第三场4897 Problem E Envious Exponents
问题 E: Envious Exponents时间限制: 1 Sec 内存限制: 128 MB提交: 334 解决: 58[提交] [状态] [讨论版] [命题人:admin]题目描述Alice and Bob have an integer N. Alice and Bob are not happy with their integer. Last night they w...原创 2018-08-28 20:15:48 · 240 阅读 · 0 评论 -
组队训练赛第一场5215 Problem D Fence Building
题目描述Farmer John owns a farm. He first builds a circle fence. Then, he will choose n points and build some straight fences connecting them. Next, he will feed a cow in each region so that cows cann...原创 2018-08-22 10:00:17 · 323 阅读 · 0 评论 -
2018年第三阶段个人训练赛第六场6604 Problem I Sandglass
题目描述We have a sandglass consisting of two bulbs, bulb A and bulb B. These bulbs contain some amount of sand. When we put the sandglass, either bulb A or B lies on top of the other and becomes the up...原创 2018-08-03 10:12:16 · 258 阅读 · 0 评论 -
LDU暑假集训(三)1263 Problem B B. Rolling The Polygon
按照逆时针绕向给出一个凸多边形的 n 个顶点 P0,P1,··· ,Pn−1,再给出凸多边形内部(含边界) 一点 Q。现在要将这个凸多边形在地上无滑动地滚动一周,初始时 P0P1 边与地面接触,假设当前是 PiP(i+1) mod n 边与地面接触,那么滚动一下之后则是 P(i+1) mod nP(i+2) mod n 边与地面接触。不难发现, 从初始状态滚动 n 下之后 P0P1 ...原创 2018-08-02 10:08:28 · 300 阅读 · 0 评论 -
LDU暑假集训(三)1265 Problem D D. Take Your Seat
Duha decided to have a trip to Singapore by plane.The airplane had nn seats numbered from 11 to nn, and nn passengers including Duha which were also counted from 11 to nn.The passenger with numbe...原创 2018-07-31 20:05:38 · 424 阅读 · 0 评论 -
2018年第三阶段个人训练赛第五场 5725 Problem K 小奇画画
题目描述红莲清泪两行欲吐半点却无如初是你杳然若绯雾还在水榭畔画楼处是谁衣白衫如初谁红裳如故——《忆红莲》小奇想画几朵红莲,可惜它刚开始学画画,只能从画圆开始。小奇画了n个圆,它们的圆心都在x轴上,且两两不相交(可以相切)。现在小奇想知道,它画的圆把画纸分割成了多少块?(假设画纸无限大) 输入第一行包括1个整数n。接下来n行,每行两个整数x,r,表示小奇画了圆心在(x,0)...原创 2018-07-30 20:56:00 · 222 阅读 · 0 评论 -
LDU暑假集训(十)1209 Problem I NEW RDSP MODE I
题目描述 Little A has became fascinated with the game Dota recently, but he is not a good player. In all the modes, the rdsp Mode is popular on online, in this mode, little A always loses games if he ...原创 2018-08-03 20:39:46 · 261 阅读 · 0 评论 -
LDU暑假集训(三)1269 Problem H H. Fight Against Monsters
It is my great honour to introduce myself to you here. My name is Aloysius Benjy Cobweb Dartagnan Egbert Felix Gaspar Humbert Ignatius Jayden Kasper Leroy Maximilian. As a storyteller, today I decide ...原创 2018-07-30 08:53:07 · 665 阅读 · 0 评论 -
LDU B - LCM CodeForces - 1068B
van has number b. He is sorting through the numbers a from 1 to 10^18, and for every a writes [a,b]/a on blackboard. Here [a,b] stands for least common multiple of a and b. Ivan is very lazy, that's w...原创 2018-11-23 21:48:01 · 471 阅读 · 0 评论