搜索
admin__
这个作者很懒,什么都没留下…
展开
-
Dating with girls(2)
题目:If you have solved the problem Dating with girls(1).I think you can solve this problem too.This problem is also about dating with girls. Now you are in a maze and the girl you want to date with i...原创 2018-07-22 19:03:41 · 246 阅读 · 0 评论 -
超级密码
题目:Ignatius花了一个星期的时间终于找到了传说中的宝藏,宝藏被放在一个房间里,房间的门用密码锁起来了,在门旁边的墙上有一些关于密码的提示信息: 密码是一个C进制的数,并且只能由给定的M个数字构成,同时密码是一个给定十进制整数N(0<=N<=5000)的正整数倍(如果存在多个满足条件的数,那么最小的那个就是密码),如果这样的密码存在,那么当你输入它以后门将打开,如果不存在这...原创 2018-08-26 21:33:06 · 2166 阅读 · 0 评论 -
The Falling Leaves
题目:题目连接:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=640 题意:给一个先序二叉树,其中左子结点在父节点左一个单位,右节点在父节点右一个单位;让从左到右输出每个水平位置的权值和; 思路:定...原创 2018-08-26 21:15:02 · 241 阅读 · 0 评论 -
Tree
题目:You are to determine the value of the leaf node in a given binary tree that is the terminal node of a path of least value from the root of the binary tree to any leaf. The value of a path is the ...原创 2018-08-26 21:00:04 · 154 阅读 · 0 评论 -
Trees on the level
题目:Trees are fundamental in many branches of computer science. Current state-of-the art parallel computers such as Thinking Machines' CM-5 are based on fat trees. Quad- and octal-trees are fundament...原创 2018-08-26 20:34:36 · 159 阅读 · 0 评论 -
ROADS
题目:N cities named with numbers 1 ... N are connected with one-way roads. Each road has two parameters associated with it : the road length and the toll that needs to be paid for the road (expressed ...原创 2018-07-30 10:31:45 · 631 阅读 · 0 评论 -
Flip Game
题目:Flip game is played on a rectangular 4x4 field with two-sided pieces placed on each of its 16 squares. One side of each piece is white and the other one is black and each piece is lying either it...原创 2018-07-26 20:50:52 · 382 阅读 · 0 评论 -
生日蛋糕
题目:7月17日是Mr.W的生日,ACM-THU为此要制作一个体积为Nπ的M层生日蛋糕,每层都是一个圆柱体。 设从下往上数第i(1 <= i <= M)层蛋糕是半径为Ri, 高度为Hi的圆柱。当i < M时,要求Ri > Ri+1且Hi > Hi+1。 由于要在蛋糕上抹奶油,为尽可能节约经费,我们希望蛋糕外表面(最下一层的下底面除外)的面积Q最小。 令Q =...原创 2018-07-26 18:21:42 · 223 阅读 · 0 评论 -
逃离迷宫
题目:给定一个m × n (m行, n列)的迷宫,迷宫中有两个位置,gloria想从迷宫的一个位置走到另外一个位置,当然迷宫中有些地方是空地,gloria可以穿越,有些地方是障碍,她必须绕行,从迷宫的一个位置,只能走到与它相邻的4个位置中,当然在行走过程中,gloria不能走到迷宫外面去。令人头痛的是,gloria是个没什么方向感的人,因此,她在行走过程中,不能转太多弯了,否则她会晕倒的。我们...原创 2018-07-24 16:16:05 · 481 阅读 · 0 评论 -
Fire Net
题目:Suppose that we have a square city with straight streets. A map of a city is a square board with n rows and n columns, each representing a street or a piece of wall. A blockhouse is a small cast...原创 2018-07-22 19:21:05 · 123 阅读 · 0 评论 -
Apple Tree————POJ—3321
题目:There is an apple tree outside of kaka's house. Every autumn, a lot of apples will grow in the tree. Kaka likes apple very much, so he has been carefully nurturing the big apple tree.The tree h...原创 2019-05-02 16:03:17 · 278 阅读 · 0 评论