- 博客(6)
- 收藏
- 关注
原创 HDU 1501 排列2(枚举)
Problem Description Ray又对数字的列产生了兴趣: 现有四张卡片,用这四张卡片能排列出很多不同的4位数,要求按从小到大的顺序输出这些4位数。 Input 每组数据占一行,代表四张卡片上的数字(0 Output 对每组卡片按从小到大的顺序输出所有能由这四张卡片组成的4位数,千位数字相同的在同一行,同一行中每个四位
2017-03-23 20:53:54 404
原创 NYOJ 211 tree(二叉树的遍历与创建)
B - Tree Recovery Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Submit Status Description Little Valentine liked playing with binary trees very much. H
2017-03-23 20:44:14 594
原创 HDU 1501 Zipper (DFS)
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 9922 Accepted Submission(s): 3553 Problem Description Given three strings, you ar
2017-03-23 20:36:36 283
原创 快排原理
举例 :用快速排序将 6 1 2 7 9 3 4 5 10 8这个序列排序。 思路: 首先在这个序列中选择一个基准数(一个用来参照的数).,一般情况下选择左边第一个数作为基准数,接下来首先要做的就是将这个序列中所有大于基准数的元素放在基准数之后,将所有小于基准数的元素放在基准数之前,这样就可以得到 3 1 2 5 4 6 9 7 10 8这个序列,所以从这个变化后的序列可以看出,
2017-03-09 20:27:24 2839
原创 hdoj2824 The Euler function(欧拉函数)
Problem Description The Euler function phi is an important kind of function in number theory, (n) represents the amount of the numbers which are smaller than n and coprime to n, and this function h
2017-03-07 18:29:11 295
原创 POJ 3187 (DFS)
Description FJ and his cows enjoy playing a mental game. They write down the numbers from 1 to N (1 <= N <= 10) in a certain order and then sum adjacent numbers to produce a new list with one few
2017-03-06 21:54:29 267
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人