CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 源码下载 Windows编程 控制台(字符窗口)编程

文件名称:mofang

  • 所属分类:
  • 标签属性:
  • 上传时间:
    2014-09-21
  • 文件大小:
    1kb
  • 已下载:
    2次
  • 提 供 者:
  • 相关连接:
  • 下载说明:
    别用迅雷下载,失败请重下,重下不扣分!

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

在生活中,条形码经常用来标志物品的信息。条形码是由黑白相间的条组成的。条的宽度有两种,我们可以认为窄的代表0,宽的代表1。本题中设定宽条的宽度是窄条的两倍。



楠神拥有很强的DIY精神,他决定做一个条形码识别工具。首先他完成了图像识别部分,得到了一系列条的宽度。他希望将这些宽度识别为一个01串。本来这是一个非常简单的任务,可是由于楠神在识别的时候会有误差,使得问题变得没那么简单了。不过楠神认为测量得到的结果最多比真实值大或小5 。请你帮忙完成这个识别程序。已知条形码中至少有一个是宽条,可能没有窄条。



输入第一行为一个数字n(n<20),表示楠神识别出了n个条。

第二行为n个正整数,均不大于10^8。

输出为一个长度为n的01串,宽条对应1,窄条对应0。如果有些条偏差的超过了限制,输出“Bad Barcodes”-In life, the bar code information is often used to mark items. Barcode is composed of black and white stripes. The width of the strip, there are two, we can consider a narrow represents 0, representative of a wide. In this problem is to set the width of the narrow width twice. Nan has a strong DIY spirit of God, he decided to do a barcode recognition tools. First he completed a image recognition part, a series of width. He hoped that these widths identified as a 01 string. It would be a very simple task, but because Nan God when there will be errors in identification, making the problem becomes not so simple. But Nan God think the results measured up to larger or smaller than the true value of 5 . Please help complete the identification process. Known in the bar code is at least one wide strip, the strips may not be. Enter the first acts of a number n (n < 20), said Nan God identified the n-bar. The second behavior n positive integers not greater than 10 ^ 8. Output that is a string
(系统自动生成,下载前可以参看下载内容)

下载文件列表

C语言编程--魔方问题.txt

相关说明

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

相关评论

549277648@qq.com (已下载) 发表于 06-16 17:19

为什么介绍说明的是条形码的问题,下载下来的文件却是魔方问题的程序

发表评论

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