摘要: 题目链接:http://acm.hust.edu.cn/vjudge/problem/19244 #include <iostream> #include <cstdio> #include <cstdlib> #include <cmath> #include <algorithm> #inclu 阅读全文
posted @ 2016-08-04 20:59 贱人方 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 题目连接:http://acm.hust.edu.cn/vjudge/problem/19486 给你一个杠杆两端的物体的质量和力臂,如果质量为零,则下面是一个杠杆,判断是否所有杠杆平衡。 分析:递归。直接递归求解即可。 #include <iostream> #include <cstdio> # 阅读全文
posted @ 2016-08-04 20:34 贱人方 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2016-08-04 19:40 贱人方 阅读(285) 评论(0) 推荐(0) 编辑
摘要: The Unique MST Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 27141 Accepted: 9712 Description Given a connected undirected graph, tell if 阅读全文
posted @ 2016-08-04 12:20 贱人方 阅读(3154) 评论(0) 推荐(0) 编辑