-
forum-ddt
The pdf file which gives the description abt the forum and ddt it is frm SAEC
- 2013-02-11 15:51:08下载
- 积分:1
-
item3
车轮上刻有一圈共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.)
- 2018-01-11 20:01:20下载
- 积分:1
-
VB编写的材料分发系统Access数据库
VB编写的材料分发系统Access数据库,可用于仓库商品、报刊杂志、文件资料的分发管理程序,程序有很大的二次开发空间。程序可实现分发资料的录入、查询和修改删除等管理操作,程序原型是一个杂志分发管理系统,可扩展成其它的分发系统。
- 2022-08-05 16:54:16下载
- 积分:1
-
opengl
Nehe的opengl全部教程,适用于c++语言,适合初学者。(All Nehe' s opengl tutorials for c++ language, suitable for beginners.)
- 2014-05-05 17:28:47下载
- 积分:1
-
python环境、代码及数据
说明: 计算节点复杂度,网络中心度,复杂中心度等的复杂网络分析(Computing Node Complexity)
- 2019-04-10 11:23:00下载
- 积分:1
-
Read this to understand basics about software testing.
Read this to understand basics about software testing.
- 2022-01-26 07:56:24下载
- 积分:1
-
usb设计利用Cadence PCB SI分析特性阻抗变化因素
usb设计利用Cadence PCB SI分析特性阻抗变化因素-usb design using Cadence PCB SI analysis of the characteristic impedance changes in factors
- 2022-03-04 19:50:28下载
- 积分:1
-
计算全球卫星坐标
计算GPS卫星的坐标值
用文本格式输入星历表
-calculate GPS planet s coordinate
and put the form by text
- 2023-07-29 15:35:05下载
- 积分:1
-
china_map1
中国各省海拔分布,MATLAB程序,可修改数据(Chinese provinces elevation distribution, MATLAB program, you can modify the data)
- 2017-07-16 23:26:00下载
- 积分:1
-
深思S4加密狗之数据抓取
把附件解压后复制主程序相同目录下,运行主程序,在C盘下出现加密狗记录文件S4.txt(需插原版狗),有了这些狗数据就可以全部获取了。(After decompressing the attachment, copy the main program in the same directory, run the main program, encrypted dog record file S4.txt appears under the C disk (need to insert the original dog), with these dog data can be obtained.)
- 2020-06-22 11:40:01下载
- 积分:1