随笔分类 -  CSharpAlgorithm

摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->BLOWFISH算法Blowfish是一个64位分组及可变密钥长度的分组密码算法,算法由两部分组成:密钥扩展和数据加密。密钥扩展把长度可达到448位的密钥转变成总共4168字节的几个子密钥。数据加... 阅读全文
posted @ 2009-04-07 14:47 jianlinglo 阅读(1215) 评论(0) 推荐(1)
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Collections.Generic;using System.Text;namespace ExSum{ class Sum {... 阅读全文
posted @ 2009-01-12 19:01 jianlinglo 阅读(265) 评论(0) 推荐(0)
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Collections.Generic;using System.Text;using System.Collections; /** * 某... 阅读全文
posted @ 2009-01-12 19:00 jianlinglo 阅读(200) 评论(0) 推荐(0)
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Collections.Generic;using System.Text;/*八皇后问题: 八个皇后在排列时不能同在一行、一列或一条斜线上。在... 阅读全文
posted @ 2009-01-12 18:59 jianlinglo 阅读(139) 评论(0) 推荐(0)
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Collections.Generic;using System.Text;namespace ExArrange{ class Arrang... 阅读全文
posted @ 2009-01-12 18:59 jianlinglo 阅读(594) 评论(0) 推荐(0)
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Collections.Generic;using System.Text;namespace ExFactorial{ class Fa... 阅读全文
posted @ 2009-01-12 18:58 jianlinglo 阅读(150) 评论(0) 推荐(0)
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Security.Cryptography;using System.Text;using System.IO;namespace Common... 阅读全文
posted @ 2009-01-12 18:57 jianlinglo 阅读(131) 评论(0) 推荐(0)
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Collections.Generic;using System.Text;/*歌德巴赫猜想:任何一个大于6的偶数都可以写为两个素数之和*/na... 阅读全文
posted @ 2009-01-12 18:56 jianlinglo 阅读(119) 评论(0) 推荐(0)
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->//猴子选大王问题: 一堆猴子都有编号,编号是1,2,3 m ,这群猴子(m个)按照1到m的顺序围坐一圈,//从第1开始数,每数到第n个,该猴子就要离开此圈,这样依次下来,直到圈中只剩下最后一只猴... 阅读全文
posted @ 2009-01-12 18:56 jianlinglo 阅读(155) 评论(0) 推荐(0)
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;public class MatrixMultiply{ public static void Main() { // 声明一个2行3列的两维数... 阅读全文
posted @ 2009-01-12 18:55 jianlinglo 阅读(276) 评论(0) 推荐(0)
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Collections.Generic;using System.Text;namespace ExMinGongBeiShu{ clas... 阅读全文
posted @ 2009-01-12 18:54 jianlinglo 阅读(192) 评论(0) 推荐(0)
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;public class T{ int[] can = new int[4]; public T(int a, int b, int c, int d) ... 阅读全文
posted @ 2009-01-12 18:53 jianlinglo 阅读(366) 评论(0) 推荐(0)
摘要:代码: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Collections.Generic;using System.Text;namespace ConsoleApplication... 阅读全文
posted @ 2009-01-12 18:51 jianlinglo 阅读(150) 评论(0) 推荐(0)
摘要:算法列表: 1.冒泡,插入,选择,希尔排序. 2.1的1到n的n次方. 3.4个10以内的数字,通过四则运算得到24 4.6个嫌疑犯 5.8皇后 6.Cnr全排列 7.n! 8.str1中含有几个str2 9.哥德巴赫猜想 10.猴子选大王问题 11.矩阵乘积 12.两个数最小公倍数 13.判断完数 14.亲密数对的查找 15.求一个数最大公约数 16.生成不重复数. 17.输出1到100中的偶数... 阅读全文
posted @ 2009-01-12 18:50 jianlinglo 阅读(204) 评论(0) 推荐(0)