说明:输入一个小于10的正整数n,按把每个元素都交换到最前面一次的方法,输出前n个小写字母的所有排列。(Enter a positive integer n less than 10 and press every element to the top of the list to output all the first n lowercase letters.) <黑色幽默min
> 在 上传
| 大小:10kb | 下载:0
说明:田忌与齐王赛马,双方各有n匹马参赛(n<=100),每场比赛赌注为1两黄金,现已知齐王与田忌的每匹马的速度,并且齐王肯定是按马的速度从快到慢出场,现要你写一个程序帮助田忌计算他最好的结果是赢多少两黄金(输用负数表示)。(Tian and the king's horse racing, the two sides each have n horse (n < = 100), each match bet 1 two gold, are now known to the king of <黑色幽默min
> 在 上传
| 大小:10kb | 下载:0
说明:1、Tom和Jerry轮流从堆中取出k粒花生米吃掉,k可以是1,5,10中的任意一个数字;
2、为显示规则的公平性,Jerry可以选择先取或者后取。
Jerry当然还是希望最后一粒花生米被Tom吃掉。请计算,Jerry为了达到目的应该先取还是后取(1. Tom and Jerry took out the k peanuts and ate them from the heap. K could be any number in 1, 5, and 10.
2. To show the <黑色幽默min
> 在 上传
| 大小:10kb | 下载:0
说明:在一个圆形操场的四周摆放着n堆石子(n<= 100),现要将石子有次序地合并成一堆。(A round playground is surrounded by n heap stones (n<= 100), and the stones are now sequently merged into a pile.) <黑色幽默min
> 在 上传
| 大小:10kb | 下载:0
说明:输入一个小于20的正整数n,要求按从小到大的顺序输出所有的n位二进制数,每个数占一行。(Enter a positive integer that is less than 20, and you want to output all of the n-bit binary Numbers in the order of small to large, each of which is a row.) <黑色幽默min
> 在 上传
| 大小:11kb | 下载:0
说明:用于字符串文本的匹配算法,融入了kr算法,hash函数映射的方法,缩短了计算时间成本。多用于抄袭相似度比对等领域(The matching algorithm for string texts incorporates the kr algorithm and the hash function mapping method, which reduces the computation time cost.) <onionion> 在 上传
| 大小:4kb | 下载:0