已有 1073 人浏览分享
108
2
1019万
版主
<span class="MathJax" id="MathJax-Element-1-Frame" tabindex="0" data-mathml="N" role="presentation" style="display: inline; line-height: normal; font-size: 16px; text-indent: 0px; word-spacing: normal; overflow-wrap: normal; white-space: nowrap; float: none; direction: ltr; max-width: none; max-height: none; min-width: 0px; min-height: 0px; border: 0px; position: relative;">N个人围成一圈,从第一个人开始报数,数到<span class="MathJax" id="MathJax-Element-2-Frame" tabindex="0" data-mathml="M" role="presentation" style="display: inline; line-height: normal; font-size: 16px; text-indent: 0px; word-spacing: normal; overflow-wrap: normal; white-space: nowrap; float: none; direction: ltr; max-width: none; max-height: none; min-width: 0px; min-height: 0px; border: 0px; position: relative;">M的人出圈;再由下一个人开始报数,数到<span class="MathJax" id="MathJax-Element-3-Frame" tabindex="0" data-mathml="M" role="presentation" style="display: inline; line-height: normal; font-size: 16px; text-indent: 0px; word-spacing: normal; overflow-wrap: normal; white-space: nowrap; float: none; direction: ltr; max-width: none; max-height: none; min-width: 0px; min-height: 0px; border: 0px; position: relative;">M的人出圈;…输出依次出圈的人的编号。
输入<span class="MathJax" id="MathJax-Element-4-Frame" tabindex="0" data-mathml="N" role="presentation" style="display: inline; line-height: normal; font-size: 16px; text-indent: 0px; word-spacing: normal; overflow-wrap: normal; white-space: nowrap; float: none; direction: ltr; max-width: none; max-height: none; min-width: 0px; min-height: 0px; border: 0px; position: relative;">N和<span class="MathJax" id="MathJax-Element-5-Frame" tabindex="0" data-mathml="M" role="presentation" style="display: inline; line-height: normal; font-size: 16px; text-indent: 0px; word-spacing: normal; overflow-wrap: normal; white-space: nowrap; float: none; direction: ltr; max-width: none; max-height: none; min-width: 0px; min-height: 0px; border: 0px; position: relative;">M。
输出一行,依次出圈的人的编号。
【数据范围】
对于所有数据,<span class="MathJax" id="MathJax-Element-6-Frame" tabindex="0" data-mathml="2≤N,M≤1000" role="presentation" style="display: inline; line-height: normal; font-size: 16px; text-indent: 0px; word-spacing: normal; overflow-wrap: normal; white-space: nowrap; float: none; direction: ltr; max-width: none; max-height: none; min-width: 0px; min-height: 0px; border: 0px; position: relative;">2≤N,M≤1000
[url=]提交[/url]统计信息
本题库与《信息学奥赛一本通(C++版)》(南京大学出版社)配套。 本网站属公益、非盈利性质,不涉及与书相关的商业活动,仅适当接受少量赞助以支持网站的运行维护。 感谢成都石室中学Wuvin、Qizy、Xehoth三位同学。蜀ICP备2024068936号-2 联系我们: 248801752@qq.com 23967609@qq.com
1、转载或引用本网站内容须注明原网址,并标明本网站网址(www.sdzqd.com)。
2、转载或引用本网站中的署名文章,请按规定向原作者支付稿酬。
3、对于不当转载或引用本网站内容而引起的民事纷争、行政处理或其他损失,本网站不承担责任。
4、对不遵守本声明或其他违法、恶意使用本网站内容者,本网站保留追究其法律责任的权利。
唯一网址: https://abc.sdzqd.com/forum.php?mod=viewthread&tid=370
使用道具 举报
本版积分规则 发表回复 回帖并转播 回帖后跳转到最后一页
注册账号后积极发帖的会员
经常参与各类话题的讨论,发帖内容较有主见
经常帮助其他会员答疑
积极宣传本站,为本站带来更多注册会员
积极宣传本站,为本站带来更多的用户访问量
经常在论坛发帖,且发帖量较大
长期对论坛的繁荣而不断努力,或多次提出建设性意见
活跃且尽责职守的版主
为论坛做出突出贡献的会员
0
|手机版|小黑屋|山东智趣岛论坛 ( 鲁ICP备2023024048号 )
GMT+8, 2025-7-4 18:01 , Processed in 0.265704 second(s), 55 queries .
Powered by Discuz! X3.4 Licensed
Copyright © 2001-2020, Tencent Cloud.
客服电话
电子邮件
在线时间:8:00-16:00