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aFOQD3ZrVA8gf//99793xhhjzOf4LR9CIlXd6kN9piVjlpPpisx6VnpX4IOIHzyMMcY8zWu/J6TzoV2BD2m1CGrzoQGmvehfoZPDXpV1WImt8MOHMcaYt/Dan4TM1qQbNwN5YCV3J6eio/tkP2OMMeZpXvuTkA784OaH8w7IZZ3uh/tOjjHGGGP+n8d/ErLzAAHJfAggnTrMU7rH17yTI2PdkzWNMcaYb+A1v44xxhhjzJ/FV/86xhhjjDHfix9CjDHGGPMAf/31Pzb1c7aJC5gdAAAAAElFTkSuQmCC" alt="" />
解决代码及点评
/*
16.有17个人围成一圈(编号为0~16),从第 0号的人开始从 1报数,
凡报到 3的倍数的人离开圈子,然后再数下去,直到最后只剩下一个人为止。
问此人原来的位置是多少号? */ #include <stdio.h>
#include <stdlib.h>
void main()
{
int total = 17,need = 17,k = 3;
int index = 0,count = 0,i = 0;
int a[100] = {0};
for (;;)
{
index = index % total + 1; // 取得第一个index
if(a[index] == 0) // 如果上面有人
{
i = (i + 1) % k; // 找到报数3的人
if(i == 0)
{
count++; // 退出
a[index] = 1;
}
}
if(count == need) break; // 退出的人够多时,整个循环退出
}
printf("index = %d\n",index);
system("pause");
}
代码编译以及运行
由于资源上传太多,资源频道经常被锁定无法上传资源,同学们可以打开VS2013自己创建工程,步骤如下:
1)新建工程
2)选择工程
3)创建完工程如下图:
4)增加文件,右键点击项目
5)在弹出菜单里做以下选择
6)添加文件
7)拷贝代码与运行
程序运行结果
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqUAAAG6CAYAAAAxsD/hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAACSpSURBVHhe7d0J3B1lfS/w/5tNdghKVnqtrQuUJYFAZJE1QFCCS11xw+3aWtsioKBYW++HgmIRoXpLF9GIe6/LbVVQ2YIKSmXfau31Vq4SshAQkUhCkvfOM2fmZM7JOed932xPlO83/jkzz/PMzDNzXsmPOcs7dO9/Lh2OhrPPeEu1BAAAW8YFF328Wmpph9IURoeGhuKYY+fFEUfPjylTppYDAABgc1n1+K/inrtujU9cdlkMDw+3w2kZSlMgnTx593j7aWfFyphUdgAAwJYyfZdJcf65fxkPP/xQGUzLUPruM/97vPevPhArh55SDQMAgC1r+s4T46wz/yw++OF/iqGTTz55+NBDj4jDTvzDqhsAALaOJT++LT772ctbofSvzv2beGx4YtUFAABbx16/MyXe8sZXt0Lpxz/5ufjRz5dXXQAAsHXsteceZSgdV63HkFJKKaWUUlu5au07pT++/8GqCQAAto5nz3xa58v3/7l4RdUFAABbx7NmPLUzlP6fBx6qugAAfjs89uhj8eP/+K94+OFHq5Ytb/LknePZz3lG7LjzjuW6ObTm0M8zp+8+tlB69b98vloam997zn7xu8/+gxg3rv32VQCAreLG794as/f//Zgy9alVy5a3bOmKuP3On8RhRxxYrptDaw79bBBKf7Lk4aqrt6HHllZLvY0bGoqhcUMxPBzlr4xKlXz7qmviefNfHNtvv0O5DgCwtVzz7RtjwUnPi4d+ubJq2fJ232WH+Po3vhfzTjisXDeH1hz6+f1pk7s+fZ9C5YCaNXv2wNpv1qzYd7/9Y7/994/9i+W6vVQE1F773ObqwWvif55zYXznwR59W7qax95W5tGrf4vW8vjOR8+IL93bq08ppZTauCpvnG3F6nW8bXUO9Ufg169Xfb3+lH1pePOx2qb+U62nGu0519p3Sv9r2SNVU28HPXtaLLr+nviH638c4yasi3ETh2PcpLUxvqgLXnpc7L775Gpky7wzvhjXXPTK+OCFl8QR818cO+y4U9VTWxbXX3J+fPuBarU0J17zwdfFH1Rr690V/+vdV8aUM8+Ko/aomkob7mP26y+Ol2+4g9FZflV89MO3xf4bHGdz6nMuzWPH1phHH93XoFz/Rixp9VbXd/TPR//ntJfW9suO34TnsKd+801S32Vxe7k8I05ojLn3i++Iz97WWi5NPylOP+34eFq1Gvd+Ot57+S29f+aqvpaxXAMANqerv3VDnHzykVv9DuHXvvadOG7+4eX6aOdw46JFcesPbqrW+jvwkOfGYUcfXa311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ofcdpfx6HH3547DZ5cjUqYqeddoqdd945Jk9+2kaH0s3y6XsAAH77bcmX74VSAABGZZv79D0AAE9O8+fPj5NPPjlOKB7rmvvc58Yzfu/3qhEbRygFAGBU0sv3Z5z5zph33HExZ85Bsffe+8Szn71XzJz5O7HLLpO9fA8AwJa3du3aWL16daxatboIoKvil48+Go888st4+OFfxEMPPRy/+tVj1cixE0oBAMhOKAUAIDuhFACA7IRSAACyE0oBAMhOKAUAYETp14ymSl8LlWp4uHhc21pu1dpYl9qK2hhCKQAAA6UwurYIoGvWrCm/Fiott9afaNXaNe2+NHZjCKUAAPQ1efLk+MUvfhFDQ0VwHDcuxo8fFxMmjI+JEyfEDjtsHzvuuGPsssvOxbhd42lP3T2mTtmj/C7T3XbdrdrD6AwtWLBg+LKFn4+HHu+dam+6+itx0003xaWXXlq1AADwZJB+Q9Ntt90W9913X6x4aEXVOrIUSKdMmRKzZs2KVatWxZ577hk/uv/RqrfT7tsNxZvfcIpQCgBAbymULl++PCZMmBCTJk0q75Q2DQ0NlS/Xp8emtJ4qbT/aUOrlewAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQDITigFACA7oRQAgOyEUgAAshNKAQAYtfHjx8ekSZPKmjhxYvuxrtS/MYRSAABGLYXOww8/PGbPnl3WnDlzYv78+XH66afHpZdeGuPGbVy8FEoBABi1tWvXxg033FAG0sMOOyxe8pKXxNve9rY45ZRTysd169ZVI8dGKAUAYNRSKE21cOHCmDJlShlOn/Oc58TcuXPLQJr6NoZQCgDAQENDQx2Vwmeq97///eXL+XvvvfcmBdJEKAUAYKAUPHsF0+Hh4XjBC15QPqb17jFjIZQCADBQCqXpA0zdoTMF0TVr1mxyIE2EUgAABqoDabe6rRlGe40bDaEUAICBet0lHU2NhVAKAMBA/UJpUj9uKqEUAICBVq5cuVE1FkMLFiwYvmzh5+Ohx4erpk43Xf2VmDdvXrUGAABjs+eee8aP7n+0Wuu0+3ZD8eY3nDJyKN1r5s7VEgAAbJxNDqUAALCl1KHUe0oBAMhOKAUAIDuhFACA7IRSAACyE0oBAMiu/el7AADIof2VUNU6AABkEPH/AZKL01jhznxtAAAAAElFTkSuQmCC" alt="" />
基于visual Studio2013解决C语言竞赛题之0516人来人往的更多相关文章
- 基于visual Studio2013解决C语言竞赛题之0401阶乘
题目 解决代码及点评 这个是一道经典的教科书题目,基本上每本基础的c/c++语言教科书都会有这个题目 用来演示循环语句 #include <stdio.h> #include ...
- 基于visual Studio2013解决C语言竞赛题之0205位数求和
题目
- 基于visual Studio2013解决C语言竞赛题之0201温度转换
题目 解决代码及点评 #include <stdio.h> #include <stdlib.h> void main() { float f; float c; float ...
- 基于visual Studio2013解决C语言竞赛题之0409 100以内素数
题目 解决代码及点评 在已经知道素数是怎么判断的基础上,增加循环,可以判断出100以内的素数 /******************************************* ...
- 基于visual Studio2013解决C语言竞赛题之0408素数
题目 解决代码及点评 判断一个数是不是素数的方法,一般是看n是不是能被n以内的某个整数(1除外)整除 为了提高效率,这个整数范围一般缩小到n的平方根 如果在这个范围内的整数都不能整除,那么 ...
- 基于visual Studio2013解决C语言竞赛题之0407最大值最小值
题目 解决代码及点评 这道题考察循环和比较 /*********************************************************************** ...
- 基于visual Studio2013解决C语言竞赛题之0406数列求和
题目 解决代码及点评 这个题目,还是考察for循环的使用 以及数列规律,该数列的特点是第n个分子 = 第n-1个分子 + 第n-2个分子,分母也是此规律 而另外一个规律是第n个分子和第n- ...
- 基于visual Studio2013解决C语言竞赛题之0405阶乘求和
题目 解决代码及点评 这道题和上一道题类似,第n个累加项 = n-1累加项的n倍 由于有这个规律,我们可以用一个for循环实现 但是例子代码并没有这么做,大家可以回去修改下代码,使得代码更 ...
- 基于visual Studio2013解决C语言竞赛题之0404循环求和
题目 解决代码及点评 这道题考验for循环和一个简单的算法 因为每次累加的值有规律,后面一次累加是前面一次累加的两倍 所以可以用简单的循环,计算累加项和累加结果 /************ ...
随机推荐
- SumoLogic
SumoLogic>>>Loggly. https://diyunpeng.loggly.com/setup MonitorWare http://www.monitorware.c ...
- 如何给变量取个简短且无歧义的名字(转) good
湾区日报上分享的一篇文章,文章的作者在Google设计Dart语言,就变量命名方面给了4点建议,文中也列出了好变量名.坏变量名的对比.不管作者的看法与你实际中的命名习惯是否一致,看完这篇文章,相信可以 ...
- Structs 2
1 redirect.redirectaction和chain 的区别 当使用type="redirectAction" 或type="redirect"提交 ...
- java面试复习 I
1 多线程 在程序开发中只要是多线程肯定永远以实现Runnable接口为主,因为实现Runnable接口相比继承Thread类有如下好处: 避免点继承的局限,一个类可以继承多个接口. 适合于资源的共享 ...
- spring注解controller示例
依赖库 spring 3.0 配置web.xml文件如下: <?xml version="1.0" encoding="UTF-8"?> <w ...
- Gimp制作圆角透明图片
用蒙版制作圆角透明图片,步骤如下: 1,用Gimp(2.8版本)打开图片 2,在图层窗口右键当前图层创建蒙版 3,选择蒙版类型黑色(全透明) 4,结果如下 5,用圆角矩形选择工具选择图片,设置圆角半径 ...
- 关于SOQL(一)
SOQL 是Salesforce中的查询语言,他的全称是Salesforce Object Query Language. 从字面上就能够看出,这个语言是一种基于对象的查询语言. 在Salesforc ...
- [C#]窗体切换--避免开启多个线程
先说说这个多窗体的界面的解决的办法: 用到的方法很简单,就是程序运行就建立一个MainForm,在这个MainForm中设立一个Panel,同时设立几个按钮,按下每个按钮都在这个Panel中载入不同的 ...
- java覆写equals方法
何时需要重写equals() 当一个类有自己特有的“逻辑相等”概念(不同于对象身份的概念). object规范规定,如果要重写equals(),也要重写hashcode() 如何覆写equals() ...
- jquery事件链式写法
<!DOCTYPE html><html lang="en" xmlns="http://www.w3.org/1999/xhtml"> ...