- 博客(12)
- 收藏
- 关注
原创 poj1606 Jugs
第一次做bfs+路径的题。。小白一个,代码略复杂。不过个人觉得思路还是很清楚的原题:DescriptionIn the movie "Die Hard 3", Bruce Willis and Samuel L. Jackson were confronted with the following puzzle. They were given a 3-gallon jug and
2017-01-25 21:49:08 288
原创 2016 小灶1 K (poj2236)
题目:An earthquake takes place in Southeast Asia. The ACM (Asia Cooperated Medical team) have set up a wireless network with the lap computers, but an unexpected aftershock attacked, all computers i
2017-01-15 15:25:52 399
原创 算法学习:拓扑排序(poj1094)
所谓拓扑排序,即在有向图中,找出一个没有入度的点,将他与他所有的出度从图中删去(即所有与它相连的点的入度-1)直到所有点被输出或找不到入度为零的点为止。例:题目:POJ1094An ascending sorted sequence of distinct values is one in which some form of a less-than operator is u
2017-01-15 13:16:44 316
原创 2016 小灶1 J (poj2503)
题目:You have just moved from Waterloo to a big city. The people here speak an incomprehensible dialect of a foreign language. Fortunately, you have a dictionary to help you understand them.In
2017-01-15 13:07:45 625
原创 2016 小灶1 H (HDU1896)
题目:Because of the wrong status of the bicycle, Sempr begin to walk east to west every morning and walk back every evening. Walking may cause a little tired, so Sempr always play some games this ti
2017-01-15 12:49:42 567
原创 2016 小灶1 G (POJ1456)
题目:A supermarket has a set Prod of products on sale. It earns a profit px for each product x∈Prod sold by a deadline dx that is measured as an integral number of time units starting from the mom
2017-01-15 12:31:56 297
原创 2016 小灶1 F (POJ2635)
题目:The young and very promising cryptographer Odd Even has implemented the security module of a large system with thousands of users, which is now in use in his company. The cryptographic keys are
2017-01-15 10:43:29 360
原创 2016 小灶练习 E (HDU1263)
题目:夏天来了~~好开心啊,呵呵,好多好多水果~~ Joe经营着一个不大的水果店.他认为生存之道就是经营最受顾客欢迎的水果.现在他想要一份水果销售情况的明细表,这样Joe就可以很容易掌握所有水果的销售情况了. Input第一行正整数N(0每组测试数据的第一行是一个整数M(0<M<=100),表示工有M次成功的交易.其后有M行数据,每行表示一次交易,由水果名称(小写字母组
2017-01-15 10:35:34 363
原创 2016 小灶1 D题 (HDU1019)
题目:The least common multiple (LCM) of a set of positive integers is the smallest positive integer which is divisible by all the numbers in the set. For example, the LCM of 5, 7 and 15 is 105.
2017-01-14 22:37:37 253
原创 2016 小灶1 C题 (HDU1225)
题目:Football is one of the greatest games in the world. Lots of people like to play football. After one season of matches, the header has to calculate the last scores of every team. He is too lazy
2017-01-14 22:28:54 381
原创 2016 小灶练习 B (HDU1228)
题目:读入两个小于100的正整数A和B,计算A+B.需要注意的是:A和B的每一位数字由对应的英文单词给出. Input测试输入包含若干测试用例,每个测试用例占一行,格式为"A + B =",相邻两字符串有一个空格间隔.当A和B同时为0时输入结束,相应的结果不要输出. Output对每个测试用例输出1行,即A+B的值. Sa
2017-01-14 22:23:53 315
原创 2016 小灶练习1 A题 (HDU1034)
题目:A number of students sit in a circle facing their teacher in the center. Each student initially has an even number of pieces of candy. When the teacher blows a whistle, each student simultaneousl
2017-01-14 22:09:14 798
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人