随笔分类 - 其他 贪心
摘要:C. Hacker, pack your bags! It's well known that the best way to distract from something is to do one's favourite thing. Job is such a thing for Leha.
阅读全文
摘要:1029: [JSOI2007]建筑抢修 Description 小刚在玩JSOI提供的一个称之为“建筑抢修”的电脑游戏:经过了一场激烈的战斗,T部落消灭了所有z部落的入侵者。但是T部落的基地里已经有N个建筑设施受到了严重的损伤,如果不尽快修复的话,这些建筑设施将会完全毁坏。现在的情况是:T部落基地
阅读全文
摘要:C. Recycling Bottles It was recycling day in Kekoland. To celebrate it Adil and Bera went to Central Perk where they can take bottles from the ground
阅读全文
摘要:String Problem Description There is a string S.S only contain lower case English character.(10≤length(S)≤1,000,000)How many substrings there are that
阅读全文
摘要:A set of n 1-dimensional items have to be packed in identical bins. All bins have exactly the samelength l and each item i has length li ≤ l. We look
阅读全文
摘要:很久很久之前,森林里住着一群兔子。有一天,兔子们突然决定要去看樱花。兔子们所在森林里的樱花树很特殊。樱花树由n个树枝分叉点组成,编号从0到n-1,这n个分叉点由n-1个树枝连接,我们可以把它看成一个有根树结构,其中0号节点是根节点。这个树的每个节点上都会有一些樱花,其中第i个节点有c_i朵樱花。樱花
阅读全文
摘要:Prime BasesProblem DescriptionGiven any integer base b >= 2, it is well known that every positive integer n can be uniquely represented in base b. Tha...
阅读全文
摘要:Silly SortYour younger brother has an assignment and needs some help. His teacher gave him a sequence ofnumbers to be sorted in asc...
阅读全文
摘要:B. Hamming Distance SumGenos needs your help. He was asked to solve the following programming problem by Saitama:The length of some stringsis denoted|...
阅读全文
摘要:D. Lazy StudentStudent Vladislav came to his programming exam completely unprepared as usual. He got a question about some strange algorithm on a grap...
阅读全文
摘要:D. KindergartenIn a kindergarten, the children are being divided into groups. The teacher put the children in a line and associated each child with hi...
阅读全文
摘要:A. BitsLet's denote asthe number of bits set ('1' bits) in the binary representation of the non-negative integerx.You are given multiple queries consi...
阅读全文
摘要:C. Palindrome TransformationNam is playing with a string on his computer. The string consists ofnlowercase English letters. It is meaningless, so Nam ...
阅读全文
摘要:A Magic LampProblem DescriptionKiki likes traveling. One day she finds a magic lamp, unfortunately the genie in the lamp is not so kind. Kiki must ans...
阅读全文
摘要:B. Anton and LinesThe teacher gave Anton a large geometry homework, but he didn't do it (as usual) as he participated in a regular round on Codeforces...
阅读全文
摘要:B. Random Teamsnparticipants of the competition were split intomteams in some manner so that each team has at least one participant. After the competi...
阅读全文
摘要:B -Team FormationDescriptionFor an upcoming programming contest, Edward, the headmaster of Marjar University, is forming a two...
阅读全文
摘要:D -Interval queryTime Limit: 1.5 SecMemory Limit: 256 MBDescriptionThis is a very simple question. There are N intervals in number axis, and M queries...
阅读全文
摘要:G. FacePalm AccountingTime Limit: 20 SecMemory Limit: 256 MB题目连接http://codeforces.com/gym/100513/problem/GDescriptionAn owner of a small company FaceP...
阅读全文

浙公网安备 33010602011771号