博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
约瑟夫环·
阅读量:4318 次
发布时间:2019-06-06

本文共 419 字,大约阅读时间需要 1 分钟。

约瑟夫环

Input 
7 5(有几组数据)
10 4 11 4 1(从一开始去除谁)
Output 
4 2 5 6 1 
Input 
3 2
2 5
Output 
3 2 
 

#include 
#include
#include
using namespace std;#include
#include
deque
str;int main(){    int m,n,i,a[102],b[102],j,g;    scanf("%d%d",&m,&n);    for(i=0;i

 

转载于:https://www.cnblogs.com/zcy19990813/p/9702841.html

你可能感兴趣的文章
Git使用gitignore建立项目过滤规则
查看>>
Can you solve this equation?
查看>>
经典算法50题
查看>>
广义距离变换
查看>>
2019年Q1总结+Q2大体规划
查看>>
struts2常用标签
查看>>
初次学习CentOS需要注意的问题
查看>>
初学C#之方法
查看>>
[Kubernetes]深入理解StatefulSet
查看>>
2018.2.2 java中的Date如何获取 年月日时分秒
查看>>
基础知识回顾:闭包
查看>>
luogu P1602 Sramoc问题
查看>>
11.29燃尽图
查看>>
CPU31X-2DP通过DP网络连接远程IO站
查看>>
Ubuntu 10.10更新源列表
查看>>
工作总结:文件对话框的分类(C++)
查看>>
Android log system
查看>>
开源库(不定义更新)
查看>>
Java线程:线程的调度-让步
查看>>
jquery和zepto的区别
查看>>