随笔分类 -  其他 模拟

摘要:题目连接: https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=4896 We want to have a great SWERC at Por 阅读全文
posted @ 2016-07-15 18:03 meekyan 阅读(687) 评论(0) 推荐(0)
摘要:F. Restore a Number Vasya decided to pass a very large integer n to Kate. First, he wrote that number as a string, then he appended to the right integ 阅读全文
posted @ 2016-05-11 19:21 meekyan 阅读(307) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2016-04-22 22:23 meekyan 阅读(470) 评论(0) 推荐(0)
摘要:Feel Good Description Bill is developing a new mathematical theory for human emotions. His recent investigations are dedicated to studying how good or 阅读全文
posted @ 2016-04-20 21:05 meekyan 阅读(277) 评论(0) 推荐(0)
摘要:Draw a Mess It’s graduated season, every students should leave something on the wall, so....they draw a lot ofgeometry shape with different color.When 阅读全文
posted @ 2016-01-29 22:11 meekyan 阅读(269) 评论(0) 推荐(0)
摘要:C. Pearls in a RowThere arenpearls in a row. Let's enumerate them with integers from1tonfrom the left to the right. The pearl numberihas the typeai.Le... 阅读全文
posted @ 2016-01-24 19:28 meekyan 阅读(208) 评论(0) 推荐(0)
摘要:B. Grandfather Dovlet’s calculatorOnce Max found an electronic calculator from his grandfather Dovlet's chest. He noticed that the numbers were writte... 阅读全文
posted @ 2016-01-24 19:24 meekyan 阅读(344) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2016-01-22 23:26 meekyan 阅读(280) 评论(0) 推荐(0)
摘要:DanceProblem DescriptionFor a dance to be proper in the Altered Culture of Machinema, it must abide by the following rules:1. A dip can only appear 1 ... 阅读全文
posted @ 2016-01-22 17:22 meekyan 阅读(409) 评论(0) 推荐(1)
摘要:Bonnie and ClydeDescriptionBonnie and Clyde are into robbing banks. This time their target is a town called Castle Rock. There are n banks located alo... 阅读全文
posted @ 2016-01-17 20:47 meekyan 阅读(327) 评论(0) 推荐(0)
摘要:C. New Year and DominoThey say "years are like dominoes, tumbling one after the other". But would a year fit into a grid? I don't think so.Limak is a ... 阅读全文
posted @ 2015-12-31 23:54 meekyan 阅读(384) 评论(0) 推荐(0)
摘要:D. The Union of k-SegmentsYou re givennsegments on the coordinate axisOxand the numberk. The point issatisfiedif it belongs to at leastksegments. Find... 阅读全文
posted @ 2015-12-28 14:37 meekyan 阅读(309) 评论(0) 推荐(0)
摘要:B. Vika and SquaresVika hasnjars with paints of distinct colors. All the jars are numbered from1tonand thei-th jar containsailiters of paint of colori... 阅读全文
posted @ 2015-12-27 22:29 meekyan 阅读(302) 评论(1) 推荐(0)
摘要:B. Hamming Distance SumGenos needs your help. He was asked to solve the following programming problem by Saitama:The length of some stringsis denoted|... 阅读全文
posted @ 2015-12-24 12:53 meekyan 阅读(431) 评论(0) 推荐(0)
摘要:A. Saitama Destroys HotelSaitama accidentally destroyed a hotel again. To repay the hotel company, Genos has volunteered to operate an elevator in one... 阅读全文
posted @ 2015-12-24 12:48 meekyan 阅读(177) 评论(0) 推荐(0)
摘要:1218: [HNOI2003]激光炸弹Description一种新型的激光炸弹,可以摧毁一个边长为R的正方形内的所有的目标。现在地图上有n(N#include #include #include #include #include #include #include #include #inclu... 阅读全文
posted @ 2015-12-18 13:20 meekyan 阅读(349) 评论(0) 推荐(0)
摘要:A. Magic SpheresCarl is a beginner magician. He hasablue,bviolet andcorange magic spheres. In one move he can transform two spheresof the same colorin... 阅读全文
posted @ 2015-12-10 11:10 meekyan 阅读(231) 评论(0) 推荐(0)
摘要:1403 有趣的堆栈大家都熟悉堆栈操作。一个堆栈一般有两种操作,push和pop。假设所有操作都是合法的并且最终堆栈为空。我们可以有很多方法记录堆栈的操作,(1) 对每个pop操作,我们记录它之前一共有多少个push操作。(2) 对每个pop操作,我们记录这个被Pop的元素曾经被压上了几个。例如:操... 阅读全文
posted @ 2015-11-24 20:47 meekyan 阅读(277) 评论(0) 推荐(1)
摘要:D. Spongebob and SquaresSpongebob is already tired trying to reason his weird actions and calculations, so he simply asked you to find all pairs of n ... 阅读全文
posted @ 2015-11-21 17:45 meekyan 阅读(355) 评论(0) 推荐(0)
摘要:B. Spongebob and JokeWhile Patrick was gone shopping, Spongebob decided to play a little trick on his friend. The naughty Sponge browsed through Patri... 阅读全文
posted @ 2015-11-21 17:38 meekyan 阅读(214) 评论(0) 推荐(0)