文件名称:11
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:744byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
//Tom和Jack在玩一个数字游戏,对方随机报出一个四位正整数,
//要求另外一方在1分钟内报出该数所对应的二进制数中最大的连续为1的位数数量。
//例如,Jack报出一个数29(11101),Tom应在1分钟之内报出3与之对应,
//但Tom的数学较差,总是不能按时报出结果。你是Tom的好朋友,而且精通编程,
//现在,Tom想请你为他写一段小程序来解决此问题。要求:输入一个正整数n(int类型),
//输出该数所对应的二进制数中最大的连续为1的位数数量-//Tom and Jack are playing a numbers game, the other side were four reported a positive integer,// request the other party within 1 minute to give the binary number corresponding to the largest number of consecutive digits of the number of 1.// For example, Jack reported that a number of 29 (11101), Tom should be reported within 1 minute of the corresponding 3,// but the mathematical poor Tom, can not always be the result of the Times. Are you a good friend of Tom, and proficient in programming,// now, Tom would like to ask you for him to write a small program to solve this problem. Requirements: Enter a positive integer n (int type),// output the binary number corresponding to the largest number of consecutive 1-digit number for
//要求另外一方在1分钟内报出该数所对应的二进制数中最大的连续为1的位数数量。
//例如,Jack报出一个数29(11101),Tom应在1分钟之内报出3与之对应,
//但Tom的数学较差,总是不能按时报出结果。你是Tom的好朋友,而且精通编程,
//现在,Tom想请你为他写一段小程序来解决此问题。要求:输入一个正整数n(int类型),
//输出该数所对应的二进制数中最大的连续为1的位数数量-//Tom and Jack are playing a numbers game, the other side were four reported a positive integer,// request the other party within 1 minute to give the binary number corresponding to the largest number of consecutive digits of the number of 1.// For example, Jack reported that a number of 29 (11101), Tom should be reported within 1 minute of the corresponding 3,// but the mathematical poor Tom, can not always be the result of the Times. Are you a good friend of Tom, and proficient in programming,// now, Tom would like to ask you for him to write a small program to solve this problem. Requirements: Enter a positive integer n (int type),// output the binary number corresponding to the largest number of consecutive 1-digit number for
(系统自动生成,下载前可以参看下载内容)
下载文件列表
11.cpp
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
