计算直线的交点数Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 8630 Accepted Submission(s): 3885Problem Description
平面上有n条直线,且无三线共点,问这些直线能有多少种不同交点...
分类:
其他好文 时间:
2015-05-05 23:53:26
阅读次数:
140
The Embarrassed Cryptographer
Time Limit: 3000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 563 Accepted Submission(s): 172
Problem Description
...
分类:
其他好文 时间:
2015-05-05 22:00:56
阅读次数:
211
题目传送门 1 /* 2 LIS模板题:n - 最长下降子序列 -> 最长上升子序列 贪心做法以后再补:) 3 */ 4 #include 5 #include 6 #include 7 #include 8 #include 9 using namespace std;10 1...
分类:
其他好文 时间:
2015-05-05 16:08:48
阅读次数:
136
N对数的排列问题
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 1269 Accepted Submission(s): 942
Problem Description
有N对双胞胎,他们的年龄分别是1,2...
分类:
其他好文 时间:
2015-05-05 10:43:32
阅读次数:
141
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2102思路分析:搜索方法分析:由于需要寻找最短的找到公主的路径,所以采用bfs搜索需要注意的地方:1)如果当前状态为'#'字符,需要传送到另外一层,但是从该层到另外一层的时间是不会计算;2)如果当前状态为...
分类:
其他好文 时间:
2015-05-04 20:09:03
阅读次数:
136
题目:
Problem Description
A triangle field is numbered with successive integers in the way shown on the picture below.
The traveller needs to go from the cell with number M to the cell with...
分类:
其他好文 时间:
2015-05-04 13:55:46
阅读次数:
122
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1226思路分析:题目要求寻找一串长度不大于500的C进制的密码,且该密码需要为十进制数N的整数倍。搜索方式选择:由于密码的长度未知(题目限制最大为500),所以状态树的深度比较深,采用dfs搜索效率比较低...
分类:
其他好文 时间:
2015-05-03 23:25:29
阅读次数:
194
A Walk Through the ForestTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 6397 Accepted Submission(s): 2348Problem Description
Jimmy experie...
分类:
其他好文 时间:
2015-05-03 00:52:15
阅读次数:
163
Anniversary partyTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 5917 Accepted Submission(s): 2692Problem Description
There is going to be...
分类:
其他好文 时间:
2015-05-02 22:10:40
阅读次数:
158
Entropy
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 4609 Accepted Submission(s): 1900
Problem Description
An entropy encoder i...
分类:
其他好文 时间:
2015-05-02 12:30:56
阅读次数:
154