登录
首页 » WINDOWS » item3

item3

于 2018-01-11 发布 文件大小:1KB
0 244
下载积分: 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 个回复

  • matlab读取txt格式转换为矩阵
    说明:  介绍五中点云滤波方法:直通滤波器、体素滤波器、统计滤波器、条件滤波器、半径滤波器。(Five-midpoint cloud filtering methods are introduced: through filter, voxel filter, statistical filter, conditional filter and radius filter.)
    2020-12-31 20:08:59下载
    积分:1
  • Oelove婚庆交友程序v5.7源码安装说明
    说明:  Oelove婚庆交友程序v5.7源码安装说明(Oleove wedding dating program v5.7 source installation instructions)
    2019-12-23 17:59:19下载
    积分:1
  • 大漠中文插件3.1233
    大漠中文插件3.1233.ec 模块名称:大漠插件中文版3.1233 作者:明祥惑惑狼 版本:1.0 游戏辅助模块! @备注: 大漠插件3.1233版 大漠最后一个免费版本。直接注册调用即可!无需在单独下载大漠DLL文件。(Module name: the Chinese version of the desert plug-in 3.1233 Author: Ming Xiang puzzled wolves Version: 1 Game assistant module! @ @ note: Desert 3.1233 version of the last free version of desert. Direct registration call can be! There is no need to download the desert DLL file separately.)
    2018-05-13 13:58:03下载
    积分:1
  • 栅格地图源代码
    MATLAB创建栅格地图源码,用于路径规划方面的地图创建(MATLAB create grid map source code for map building in path planning)
    2021-04-26 14:18:45下载
    积分:1
  • 张小飞_MATALB_程序
    说明:  张小飞版阵列信号处理 matlab程序代码(Zhang Xiaofei's Array Signal Processing Matlab Program Code)
    2018-11-22 20:34:28下载
    积分:1
  • 用来进行电脑的关机和注销,方法很简单,比较实用。
    用来进行电脑的关机和注销,方法很简单,比较实用。-Used for computer shutdown and cancellation method is very simple, more practical.
    2022-01-22 02:04:07下载
    积分:1
  • Symbian OS 9.1的截图
    ScreenShot for Symbian OS 9.1
    2023-09-08 12:00:03下载
    积分:1
  • 新闻门户
    智能企业建站系统,该系统能让用户在短时间内迅速架设属于自己公司的企业网站。建站系统易学易懂(Intelligent Enterprise Station Building System, which enables users to quickly set up their own company website in a short time. Station building system is easy to learn and understand)
    2020-06-22 09:20:02下载
    积分:1
  • 领取礼物动画特效
    一款漂亮的jQuery微信打开红包领取礼物动画特效,适合于手机移动端微信送礼活动。(A beautiful jQuery Wechat opens the red envelope to receive the gift animation special effects, suitable for mobile terminal Wechat gift delivery activities.)
    2018-09-21 10:34:15下载
    积分:1
  • learning VC when doing small exercises, based on the application of the single
    学习VC++时做得小练习,基于单文档应用的简单的数据库编程,易于出血者的使用,实现最基本的数据库管理功能-learning VC when doing small exercises, based on the application of the single-file database programming simple and easy to use bleeding, achieve the most basic database management functions
    2022-01-27 17:16:17下载
    积分:1
  • 696516资源总数
  • 106918会员总数
  • 4今日下载