热搜关键词: 数字信号处理RTOSC语言Linux射频电路

rar

ACM试题An Easy ProblemDescription As we known, data stored in the computers is in binary form. The

  • 1星
  • 2014-03-05
  • 9KB
  • 需要2积分
  • 0次下载
标签: 试题

试题

easy

试题

known

试题

data

试题

the

试题

ACM试题An  Easy  ProblemDescription  As  we  known,  data  stored  in  the  computers  is  in  binary  form.  The  problem  we  discuss  now  is  about  the  positive  integers  and  its  binary  form.  Given  a  positive  integer  I,  you  task  is  to  find  out  an  integer  J,  which  is  the  minimum  integer  greater  than  I,  and  the  number  of  1  s  in  whose  binary  form  is  the  same  as  that  in  the  binary  form  of  I.  For  example,  if  "78"  is  given,  we  can  write  out  its  binary  form,  "1001110".  This  binary  form  has  4  1  s.  The  minimum  integer,  which  is  greater  than  "1001110"  and  also  contains  4  1  s,  is  "1010011",  i.e.  "83",  so  you  should  output  "83".

展开预览

猜您喜欢

评论

登录/注册

积分规则

意见反馈

求资源

回顶部

推荐内容

热门活动

热门器件

随便看看

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

 
机器人开发圈

About Us 关于我们 客户服务 联系方式 器件索引 网站地图 最新更新 手机版 版权声明

北京市海淀区中关村大街18号B座15层1530室 电话:(010)82350740 邮编:100190

电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2026 EEWORLD.com.cn, Inc. All rights reserved
×