CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 源码下载 Windows编程 其他小程序

文件名称:light-bulb

电信下载 联通下载
别用迅雷、360浏览器下载。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。

介绍说明--下载内容来自于网络,使用问题请自行百度

一条长廊里依次装有n(1 ≤ n ≤ 65535)盏电灯,从头到尾编号1、2、3、…n-1、n。每盏电灯由一个拉线开关控制。开始,电灯全部关着。

有n个学生从长廊穿过。第一个学生把号码凡是1的倍数的电灯的开关拉一下;接着第二个学生把号码凡是2的倍数的电灯的开关拉一下;接着第三个学生把号码凡是3的倍数的电灯的开关拉一下;如此继续下去,最后第n个学生把号码凡是n的倍数的电灯的开关拉一下。n个学生按此规定走完后,长廊里电灯有几盏亮着。

注:电灯数和学生数一致。-A corridor in turn fitted n (1 ≤ n ≤ 65535) light bulb, from start to finish No. 1,2,3, ... n-1, n. Each light bulb controlled by a pull switch. Start, lights all closed. There are n number of students from across the promenade. The number of students who first light switch in multiples of 1 pull then the number of students who second light switch pull multiple of 2 then a third of the number of students who multiples of three light switches pull case continues, the last n-th number of students who light switch to a multiple of n pull. n After a student has completed this provision, there Jizhan lamp lit corridor. Note: The number of students and the number of lamps in line.
(系统自动生成,下载前可以参看下载内容)

下载文件列表

灭灯/Cpp2.cpp
灭灯/Cpp2.dsp
灭灯/Cpp2.dsw
灭灯/Cpp2.ncb
灭灯/Cpp2.opt
灭灯/Cpp2.plg
灭灯/Debug/Cpp2.exe
灭灯/Debug/Cpp2.ilk
灭灯/Debug/Cpp2.obj
灭灯/Debug/Cpp2.pch
灭灯/Debug/Cpp2.pdb
灭灯/Debug/vc60.idb
灭灯/Debug/vc60.pdb
灭灯/灭灯.dsw
灭灯/灭灯.ncb
灭灯/灭灯.opt
灭灯/Debug
灭灯

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com

浏览历史记录

关闭