- 博客(13)
- 收藏
- 关注
原创 杭电ACM1060 Leftmost Digit
Problem Description Given a positive integer N, you should output the leftmost digit of N^N.Input The input contains several test cases. The first line of the input is a single integer T which is the
2015-11-30 20:11:02
613
原创 杭电ACM1098 Ignatius's puzzle
Problem Description Ignatius is poor at math,he falls across a puzzle problem,so he has no choice but to appeal to Eddy. this problem describes that:f(x)=5* x^13+13* x^5+k* a*x,input a nonegative inte
2015-11-30 20:03:33
587
原创 杭电ACM1006 Tick and Tick
Problem Description The three hands of the clock are rotating every second and meeting each other many times everyday. Finally, they get bored of this and each of them would like to stay away from the
2015-11-30 19:42:43
3082
1
原创 回溯法(1)
回溯法(探索与回溯法)是一种选优搜索法,又称为试探法,按选优条件向前搜索,以达到目标。但当探索到某一步时,发现原先选择并不优或达不到目标,就退回一步重新选择,这种走不通就退回再走的技术为回溯法,而满足回溯条件的某个状态的点称为“回溯点”。
2015-11-23 16:17:31
741
原创 (原创)Hanoi塔问题的递归方法与非递归方法(java实现)
本文讨论了Hanoi塔问题的递归方法与非递归方法,给出了java实现的代码,并比较了它们的效率。
2015-11-18 00:13:18
8491
原创 (原创)一般矩阵 Matrix类
讨论矩阵的两种表示方法,一种用一维数组来存储矩阵元素,另一种用二维数组来存储矩阵元素。然后比较两种方法,并测试它们的性能,做出总结。
2015-11-16 20:50:16
1867
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人