随笔分类 - CSharpAlgorithm
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->BLOWFISH算法Blowfish是一个64位分组及可变密钥长度的分组密码算法,算法由两部分组成:密钥扩展和数据加密。密钥扩展把长度可达到448位的密钥转变成总共4168字节的几个子密钥。数据加...
阅读全文
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Collections.Generic;using System.Text;namespace ExSum{ class Sum {...
阅读全文
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Collections.Generic;using System.Text;using System.Collections; /** * 某...
阅读全文
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Collections.Generic;using System.Text;/*八皇后问题: 八个皇后在排列时不能同在一行、一列或一条斜线上。在...
阅读全文
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Collections.Generic;using System.Text;namespace ExArrange{ class Arrang...
阅读全文
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Collections.Generic;using System.Text;namespace ExFactorial{ class Fa...
阅读全文
摘要: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...
阅读全文
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Collections.Generic;using System.Text;/*歌德巴赫猜想:任何一个大于6的偶数都可以写为两个素数之和*/na...
阅读全文
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->//猴子选大王问题: 一堆猴子都有编号,编号是1,2,3 m ,这群猴子(m个)按照1到m的顺序围坐一圈,//从第1开始数,每数到第n个,该猴子就要离开此圈,这样依次下来,直到圈中只剩下最后一只猴...
阅读全文
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;public class MatrixMultiply{ public static void Main() { // 声明一个2行3列的两维数...
阅读全文
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Collections.Generic;using System.Text;namespace ExMinGongBeiShu{ clas...
阅读全文
摘要: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) ...
阅读全文
摘要:代码: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Collections.Generic;using System.Text;namespace ConsoleApplication...
阅读全文
摘要:算法列表: 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中的偶数...
阅读全文
浙公网安备 33010602011771号