摘要: 题目连接http://acm.hdu.edu.cn/showproblem.php?pid=2034人见人爱A-BDescription参加过上个月月赛的同学一定还记得其中的一个最简单的题目,就是{A}+{B},那个题目求的是两个集合的并集,今天我们这个A-B求的是两个集合的差,就是做集合的减法运算... 阅读全文
posted @ 2015-09-08 19:47 GadyPu 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 题目连接http://acm.hdu.edu.cn/showproblem.php?pid=1575Tr ADescriptionA为一个方阵,则Tr A表示A的迹(就是主对角线上各项的和),现要求Tr(A^k)%9973。Input数据的第一行是一个T,表示有T组数据。每组数据的第一行有n(2 #... 阅读全文
posted @ 2015-09-08 19:41 GadyPu 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 题目连接http://acm.hdu.edu.cn/showproblem.php?pid=1496EquationsDescriptionConsider equations having the following form:a*x1^2+b*x2^2+c*x3^2+d*x4^2=0a, b, ... 阅读全文
posted @ 2015-09-08 19:37 GadyPu 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 题目连接http://acm.hdu.edu.cn/showproblem.php?pid=1162Eddy's pictureDescriptionEddy begins to like painting pictures recently ,he is sure of himself to be... 阅读全文
posted @ 2015-09-08 19:30 GadyPu 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 题目连接http://acm.hdu.edu.cn/showproblem.php?pid=1102Constructing RoadsDescriptionThere are N villages, which are numbered from 1 to N, and you should bu... 阅读全文
posted @ 2015-09-08 19:24 GadyPu 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 题目连接http://acm.hdu.edu.cn/showproblem.php?pid=1061Rightmost DigitDescriptionGiven a positive integer N, you should output the most right digit of N^N.... 阅读全文
posted @ 2015-09-08 19:15 GadyPu 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 题目连接http://www.lydsy.com/JudgeOnline/problem.php?id=1054移动玩具Description在一个4*4的方框内摆放了若干个相同的玩具,某人想将这些玩具重新摆放成为他心中理想的状态,规定移动时只能将玩具向上下左右四个方向移动,并且移动的位置不能有玩具... 阅读全文
posted @ 2015-09-08 18:45 GadyPu 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 题目连接http://acm.hdu.edu.cn/showproblem.php?pid=1005Number SequenceDescriptionA number sequence is defined as follows:f(1) = 1, f(2) = 1, f(n) = (A * f(... 阅读全文
posted @ 2015-09-08 18:32 GadyPu 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 题目连接http://acm.hdu.edu.cn/showproblem.php?pid=5427A problem of sortingDescriptionThere are many people's name and birth in a list.Your task is to prin... 阅读全文
posted @ 2015-09-06 20:06 GadyPu 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 题目连接http://acm.hdu.edu.cn/showproblem.php?pid=1880魔咒词典Description哈利波特在魔法学校的必修课之一就是学习魔咒。据说魔法世界有100000种不同的魔咒,哈利很难全部记住,但是为了对抗强敌,他必须在危急时刻能够调用任何一个需要的魔咒,所以他... 阅读全文
posted @ 2015-09-05 21:36 GadyPu 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 题目连接http://acm.hdu.edu.cn/showproblem.php?pid=2988Dark roadsDescriptionEconomic times these days are tough, even in Byteland. To reduce the operating ... 阅读全文
posted @ 2015-09-05 21:29 GadyPu 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 题目连接http://acm.hdu.edu.cn/showproblem.php?pid=5326WorkDescriptionIt’s an interesting experience to move from ICPC to work, end my college life and sta... 阅读全文
posted @ 2015-09-05 21:24 GadyPu 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 题目连接http://acm.hdu.edu.cn/showproblem.php?pid=4308Saving Princess claire_DescriptionPrincess claire_ was jailed in a maze by Grand Demon Monster(GDM) ... 阅读全文
posted @ 2015-09-05 21:17 GadyPu 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 题目连接http://poj.org/problem?id=3625Building RoadsDescriptionFarmer John had just acquired several new farms! He wants to connect the farms with roads s... 阅读全文
posted @ 2015-09-04 20:00 GadyPu 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 题目连接http://poj.org/problem?id=2560FrecklesDescriptionIn an episode of the Dick Van Dyke show, little Richie connects the freckles on his Dad's back to... 阅读全文
posted @ 2015-09-03 21:49 GadyPu 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 题目连接http://poj.org/problem?id=1840Battle CityDescriptionMany of us had played the game "Battle city" in our childhood, and some people (like me) even ... 阅读全文
posted @ 2015-09-02 20:04 GadyPu 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 题目连接http://poj.org/problem?id=2002SquaresDescriptionA square is a 4-sided polygon whose sides have equal length and adjacent sides form 90-degree angl... 阅读全文
posted @ 2015-09-01 19:31 GadyPu 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 题目连接http://poj.org/problem?id=3641Pseudoprime numbersDescriptionFermat's theorem states that for any prime numberpand for any integera> 1,ap=a(modp). ... 阅读全文
posted @ 2015-08-31 17:18 GadyPu 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 题目连接http://poj.org/problem?id=3580SuperMemoDescriptionYour friend, Jackson is invited to a TV show called SuperMemo in which the participant is told t... 阅读全文
posted @ 2015-08-31 17:12 GadyPu 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 题目连接http://poj.org/problem?id=3281DiningDescriptionCows are such finicky eaters. Each cow has a preference for certain foods and drinks, and she will ... 阅读全文
posted @ 2015-08-31 17:06 GadyPu 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 题目连接http://poj.org/problem?id=3259WormholesDescriptionWhile exploring his many farms, Farmer John has discovered a number of amazing wormholes. A worm... 阅读全文
posted @ 2015-08-31 17:01 GadyPu 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 题目连接http://poj.org/problem?id=3080Blue JeansDescriptionThe Genographic Project is a research partnership between IBM and The National Geographic Socie... 阅读全文
posted @ 2015-08-31 16:56 GadyPu 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 题目连接http://poj.org/problem?id=3070FibonacciDescriptionIn the Fibonacci integer sequence,F0= 0,F1= 1, andFn=Fn− 1+Fn− 2forn≥ 2. For example, the first ... 阅读全文
posted @ 2015-08-31 16:49 GadyPu 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 题目连接http://poj.org/problem?id=2887Big StringDescriptionYou are given a string and supposed to do some string manipulations.InputThe first line of the ... 阅读全文
posted @ 2015-08-31 16:42 GadyPu 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 题目连接http://poj.org/problem?id=2631Roads in the NorthDescriptionBuilding and maintaining roads among communities in the far North is an expensive busin... 阅读全文
posted @ 2015-08-31 16:35 GadyPu 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 题目连接http://poj.org/problem?id=2485HighwaysDescriptionThe island nation of Flatopia is perfectly flat. Unfortunately, Flatopia has no public highways. ... 阅读全文
posted @ 2015-08-31 16:30 GadyPu 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 题目连接http://poj.org/problem?id=2377Bad CowtractorsDescriptionBessie has been hired to build a cheap internet network among Farmer John's N (2 #include#... 阅读全文
posted @ 2015-08-31 16:24 GadyPu 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 题目连接http://poj.org/problem?id=2367Genealogical treeDescriptionThe system of Martians' blood relations is confusing enough. Actually, Martians bud when... 阅读全文
posted @ 2015-08-31 16:16 GadyPu 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 题目连接http://poj.org/problem?id=2046GapDescriptionLet's play a card game called Gap.You have 28 cards labeled with two-digit numbers. The first digit (f... 阅读全文
posted @ 2015-08-31 16:00 GadyPu 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 题目连接http://poj.org/problem?id=1985Cow MarathonDescriptionAfter hearing about the epidemic of obesity in the USA, Farmer John wants his cows to get mor... 阅读全文
posted @ 2015-08-31 15:48 GadyPu 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 题目连接http://poj.org/problem?id=1840EqsDescriptionConsider equations having the following form:a1x13+ a2x23+ a3x33+ a4x43+ a5x53=0The coefficients are g... 阅读全文
posted @ 2015-08-31 15:42 GadyPu 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 题目连接http://poj.org/problem?id=1789Truck HistoryDescriptionAdvanced Cargo Movement, Ltd. uses trucks of different types. Some trucks are used for veget... 阅读全文
posted @ 2015-08-31 15:36 GadyPu 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 题目连接http://poj.org/problem?id=1753Flip GameDescriptionFlip game is played on a rectangular 4x4 field with two-sided pieces placed on each of its 16 sq... 阅读全文
posted @ 2015-08-31 15:26 GadyPu 阅读(723) 评论(0) 推荐(0) 编辑
摘要: 题目连接http://poj.org/problem?id=1679The Unique MSTDescriptionGiven a connected undirected graph, tell if its minimum spanning tree is unique.Definition ... 阅读全文
posted @ 2015-08-31 15:15 GadyPu 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 题目连接http://poj.org/problem?id=1383LabyrinthDescriptionThe northern part of the Pyramid contains a very large and complicated labyrinth. The labyrinth ... 阅读全文
posted @ 2015-08-31 15:04 GadyPu 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 题目连接http://poj.org/problem?id=1459Power NetworkDescriptionA power network consists of nodes (power stations, consumers and dispatchers) connected by p... 阅读全文
posted @ 2015-08-31 15:01 GadyPu 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 题目连接http://poj.org/problem?id=1273Drainage DitchesDescriptionEvery time it rains on Farmer John's fields, a pond forms over Bessie's favorite clover p... 阅读全文
posted @ 2015-08-31 14:43 GadyPu 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 题目连接http://acm.hdu.edu.cn/showproblem.php?pid=2141Can you find it?DescriptionGive you three sequences of numbers A, B, C, then we give you a number X.... 阅读全文
posted @ 2015-08-30 22:14 GadyPu 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 题目连接http://acm.hdu.edu.cn/showproblem.php?pid=3152 Obstacle CourseDescriptionYou are working on the team assisting with programming for the Mars rover... 阅读全文
posted @ 2015-07-18 11:29 GadyPu 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 题目连接http://acm.hdu.edu.cn/showproblem.php?pid=2680Choose the best routeDescriptionOne day , Kiki wants to visit one of her friends. As she is liable t... 阅读全文
posted @ 2015-07-17 20:46 GadyPu 阅读(181) 评论(0) 推荐(0) 编辑