那么最后编号53的人是原来队列编号多少

更新时间:02-03 教程 由 初遇 分享

那么最后编号53的人是原来队列编号多少?

// 首先确认n个人,并打上标记 int n = 10; // 退出的报数数字 int say = 3; Queue qu = new LinkedList(); for (int i = 0; i < n; i++) { qu.add(i + 1); } // 开始报数技术 int j = 1; int lastMan = 0; while (qu.size() > 0) { lastMan = q

声明:关于《那么最后编号53的人是原来队列编号多少》以上内容仅供参考,若您的权利被侵害,请联系13825271@qq.com
本文网址:http://www.25820.com/tutorial/14_2178019.html