Ring
Write a program which finds a pattern p in a ring shaped text s.
	 
 
| Time Limit | $1$ 秒/Second(s) | Memory Limit | $512$ 兆字节/Megabyte(s) | 
| 提交总数 | $195$ | 正确数量 | $100$" | 
| 裁判形式 | 标准裁判/Standard Judge | 我的状态 | 尚未尝试 | 
| 难度 | 分类标签 | STL 字符串 动态规划 | 
Ring
Write a program which finds a pattern p in a ring shaped text s.
	 
 
In the first line, the text s is given.
In the second line, the pattern p is given.
vanceknowledgetoad
advance
                        Yes
                        1≤ length of p≤ length of s≤100
s and p consists of lower-case letters
| 本题记录 | 用 户(点击查看用户) | 运行号(点击购买题解) | 时 间 | 
|---|---|---|---|
| 算法最快[$0 $ms] | 每天一图灵 | 807059 | 2022-01-05 23:26:29 | 
| 内存最少[$0 $KB] | Shmily丶双 | 555719 | 2019-12-16 22:53:35 | 
| 第一AC | 却又像风捉摸不住 | 329474 | 2018-11-25 14:27:20 | 
| 第一挑战 | 刘成健 | 318298 | 2018-11-18 21:53:07 | 
| 竞赛编号 | 竞赛名称 | 竞赛时间 | 访问比赛 | 
|---|---|---|---|
| 1676 | 2021-2022-1学期《程序设计技能实训》字符串和指针【21计算机1234班】 | 2021-12-14 07:00:00 | 请登录 | 
| 1488 | 2019-2020-1学期《C语言程序设计技能实训》第三场:字符串和指针【19计算机12班】 | 2019-12-04 22:00:00 | 请登录 |