摘要:
/// <summary> /// 约瑟夫环问题算法 /// </summary> /// <param name="total">总人数</param> /// <param name="start">开始报数的人</param> /// <param name="alter">要出列的人</pa 阅读全文
摘要:
C#实现斐波拉切数列求和 private void button1_Click(object sender, EventArgs e) { listBox1.Items.Clear();//清空ListBox控件 int p = 0, n = 0, a = 1, b = 1;//定义变量 try { 阅读全文
摘要:
百钱白鸡的算法实现 private void button1_Click(object sender, EventArgs e) { int a = 0, b = 0, c = 0, p = 0;//定义变量 for (a = 1; a <= 19; a++)//公鸡的百元中的遍历 { for (b 阅读全文