登录
首页 » WINDOWS » item3

item3

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

  • 讲述了代码阅读的许多技巧,对做二次开发的人员来说,真是葵花宝典啊。...
    讲述了代码阅读的许多技巧,对做二次开发的人员来说,真是葵花宝典啊。-code reading about the many skills to do the secondary development of staff, is a treasury of sunflower ah.
    2022-07-10 11:45:40下载
    积分:1
  • lessgo-master
    Lessgo 是一款 Go 语言编写的简单、稳定、高效、灵活的 web 完全开发框架。它的项目组织形式经过精心设计,实现前后端分离、系统与业务分离,完美兼容MVC与MVVC等多种开发模式,非常利于企业级应用与API接口的开发。当然,最值得关注的是它突破性地支持了运行时路由重建,开发者可在Admin后台轻松实现启用/禁用模块与操作,添加/移除中间件等功能!同时,它推荐以HandlerFunc与MiddlewareFunc为基础的函数式编程,也令开发变得更加灵活富有趣味性。 此外它也博采众长,核心架构改写自echo v2,数据库内置为xorm,模板引擎内置为pongo2,其他某些功能模块改写自beego以及其他优秀开源项目。(Lessgo is a simple, stable, efficient and flexible web development framework written in Go language. Its project organization form is carefully designed to achieve front-end and back-end separation, system and business separation, perfect compatibility with MVC and MVVC and other development modes, which is very conducive to the development of enterprise application and API interface. Of course, the most notable thing is its breakthrough support for runtime routing reconstruction. Developers can easily enable/disable modules and operations, add/remove middleware and other functions in the Admin background. At the same time, it recommends functional programming based on Handler Func and Middleware Func, which makes development more flexible and interesting.)
    2020-06-22 22:00:01下载
    积分:1
  • MEEMD
    说明:  MEEMD是基于CEEMD的改进方法,该方法既能抑制 模态混叠,解决模态分裂,又能保证IMF分量的准确性。(MEEMD is an improved method based on CEEMD, which can not only suppress mode aliasing and solve mode splitting, but also ensure the accuracy of IMF components.)
    2020-09-29 09:37:43下载
    积分:1
  • EKF
    说明:  飞行器跟踪-EKF方法,仿真效果比较好,欢迎交流学习。(err)
    2008-11-27 14:25:12下载
    积分:1
  • 超声波液位计Datasheet_PV160183
    E+H液位计超声波液位计 液位计超声波液位计液位计超声波液位计(Prosonic M FMU 40/41 Prosonic M FMU Prosonic M FMU)
    2017-12-04 18:25:33下载
    积分:1
  • shuxuejianmo
    说明:  基于帧差法实现前景分割,时刻监控固定镜头前目标的识别与跟踪(foreground segmentation)
    2019-04-12 11:17:03下载
    积分:1
  • EPANET教学
    说明:  通过matlab调用EPANET可进行水力分析计算(Hydraulic analysis and calculation can be carried out by calling EPANET through MATLAB)
    2020-06-23 09:40:02下载
    积分:1
  • BattleCity(DirectX)
    采用DirectX编写的坦克大战源码,适合游戏编程初学者学习。(Tankedaizhan source code written using DirectX, game programming for beginners to learn.)
    2010-10-16 20:17:45下载
    积分:1
  • Keylogger
    Keylogger for windows
    2019-01-23 16:34:42下载
    积分:1
  • CH01_ibert_TEST
    利用 IBVivado 中提供了 1 种 IBERT 工具用于对 Xilinx FPGA 芯片的高速串行收发器进行板级硬件测试。 通过 IBERT 我们可以获取误码率,观察眼图,调节串行收发器的参数,从而有助于判断可能存在的问 题,便于验证硬件的稳定性和信号完整性。 ERT 进行 GTX 信号眼图测试 ,(Vivado provides an IBERT tool for board-level hardware testing of high-speed serial transceivers on Xilinx FPGA chips. Through IBERT, we can get the bit error rate, observe eye diagrams and adjust the parameters of serial transceiver, which is helpful to judge the possible problems and to verify the stability of hardware and signal integrity.)
    2020-12-02 14:59:26下载
    积分:1
  • 696518资源总数
  • 106161会员总数
  • 5今日下载