登录
首页 » WINDOWS » item3

item3

于 2018-01-11 发布 文件大小:1KB
0 284
下载积分: 1 下载次数: 18

代码说明:

  车轮上刻有一圈共n个英文小写字母,滚滚向前每碾过一圈就留下一条印迹,这类印迹都是长度为n的字符串。显然,从不同位置开始碾,可能得到不同的印迹。既然历史的车轮滚滚向前,故不必考虑向后碾的情况。于是,一个车轮最多对应于n条不同的印迹;反之,不同的印迹也可能来自相同的车轮。 也就是说,两条印迹若能通过循环移位相互转换,则它们来自同一条车轮。比如,所谓的循环左移k位,是指将字符串"s1 ... sk sk+1 ... sn"转换为"sk+1 ... sn s1 ... sk"。 现在,已知不同车轮的m条印迹,请你核对它们的所属的车轮。 输入   第一行有两个正整数,即车轮周长n和印迹总数m。 接下来的m行分别给出m条印迹,长度均为n。 输出   共m行,依次对应于m条印迹。   若第i条印迹与之前的第k条(0 < k < i)印迹来自同一车轮,则输出编号k;若存在多个这样的k,则输出最小者。否则(第i条印迹所来自的车轮不同于之前的所有车轮),则输出0。(If strip I imprinting and previous article K (0 < K < I) imprinted from the same wheel, the output number k is output; if there are many such K, the output is the smallest. Otherwise (the wheel from the I mark is different from all the previous wheels), the output is 0.)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • teperature_schema.bot.etch
    test hhigbuzfvtb hmiuonhzbfztz jmjn
    2019-01-30 00:47:02下载
    积分:1
  • MIMO
    说明:  MIMO信道容量仿真,包括AWGN, Rayleigh, CorrRayleigh, Rice四种类型的信道。(MIMO channel capacity simulation, including AWGN, Rayleigh, CorrRayleigh, Rice four types of channels.)
    2019-05-29 20:52:04下载
    积分:1
  • INIT
    说明:  _init_方法示例,通过一个简单的例子对init方法进行通俗化的解释(Example of _ init_ method)
    2019-05-04 15:15:44下载
    积分:1
  • pb教程源码,非常之好
    pb教程源码,非常之好-pb Guide source, very good
    2022-03-24 19:48:33下载
    积分:1
  • VB DBCombo下拉列表应用实例
    VB DBCombo例子源码,如图所示的用法实例,使用DBCombo可对数据进行分类,显示在下拉列表框中,比较常见的一种与数据库结合的下拉框。
    2022-12-13 04:45:03下载
    积分:1
  • chapter13
    说明:  类的简单应用,c++核心思想的体现规则,初学c++者适用(core code)
    2009-07-28 21:07:48下载
    积分:1
  • PHP接口说明文档
    农行网上支付平台-商户接口编程指南-PHP-Edition-V3.0.2.pdf(TrustPayClient-PHP-Edition-V3.0.2.pdf)
    2019-02-20 14:33:13下载
    积分:1
  • 11bit_Barker_code
    设计11位巴克码序列峰值检测器,巴克码相关器原理:巴克码相关器能够检测巴克码序列峰值,并且能够在1bits错误情况下检测巴克码序列峰值。(A 11-bit Barker code sequence peak detector is designed. The principle of Barker code correlator is that the Barker code correlator can detect the peak value of Barker code sequence and detect the peak value of Barker code sequence in the case of 1 bits error.)
    2020-06-21 14:00:01下载
    积分:1
  • matlab代码_小波矩特征提取
    小波变换,小波矩特征提取方法,特别好用,注释清楚(Wavelet transform, wavelet moment feature extraction method, particularly easy to use, annotated clearly.)
    2021-01-16 18:18:45下载
    积分:1
  • NetemD
    网络管理软件客户端,主要内容包括客户端和管理服务器之间的交互协议(Network management software client, the main content includes the interaction protocol between the client and the management server)
    2018-01-03 11:14:43下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载