摘要: 问题原型: 有一堆小孩N个,围成一圈,从第s个数起,每隔m个让其离开,求离开的号数或最后离开的号数。 注意,数人时是从离开的那个后一人数起。上代码:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;namespace 学生团团坐{ class Program { static void Main(string[] args) { while (true) { Console.WriteLine("请输入学生的人数,开始序号 阅读全文
posted @ 2012-04-05 21:55 王之 阅读(1147) 评论(0) 推荐(0) 编辑