当前位置:网站首页>循环单词
循环单词
2022-08-11 00:33:00 【51CTO】
如果一个单词通过循环右移获得的单词,我们称这些单词都为一种循环单词。 例如:picture 和 turepic 就是属于同一种循环单词。 现在给出n个单词,需要统计这个n个单词中有多少种循环单词。
输入描述:
输入包括n+1行:
第一行为单词个数n(1 ≤ n ≤ 50)
接下来的n行,每行一个单词word[i],长度length(1 ≤ length ≤ 50)。由小写字母构成
输出描述:
输出循环单词的种数
示例1
输入
5
picture
turepic
icturep
word
ordw
输出
2
示例2
输入
4
goran
igor
domagoj
relja
输出
4
说明
并不是必须包含两个或两个以上的不同单词才算一种循环单词!
边栏推荐
- 构建检测,无规矩不成方圆
- [Data Visualization] Chart Design Principles
- @Autowired注入RedisCache报错空指针
- 二维数组实战项目--------《扫雷游戏》
- NOR FLASH闪存芯片ID应用之软件保护场景
- How engineers treat open source
- rhel7.0解决yum无法使用(system is not registered to Red Hat Subscription Management)
- 2022.8.10-----leetcode.640
- 16. File upload
- 云原生-FRP内网穿透(详解)使用云服务器将内网集群服务暴露至公网(二)
猜你喜欢
异常:try catch finally throws throw
Only lazy and hungry. You still don't understand the singleton pattern!
英文文献阅读时,如何做笔记?
【考虫 六级英语】语法课笔记
虚拟电厂可视化大屏,深挖痛点精准减碳
C# using timer
3d打印出现stl文件物体不是流形,意味着不是水密体...解决办法
力扣------用栈操作构建数组
Dump file generation, content, and analysis
Exceptions and exception handling mechanisms
随机推荐
Volatile和CAS
嵌入式软件打log的一些心得
[Excel知识技能] 将数值格式数字转换为文本格式
16. File upload
云原生-VMware虚拟机安装Kubesphere实战(一)
异常和异常处理机制
ADC和DAC记录
91.(cesium之家)cesium火箭发射模拟
15. Interceptor - HandlerInterceptor
C#-委托的详细用法
Which foreign language journals and conferences can be submitted for software engineering/system software/programming language?
【经典排序】快速排序
word 设置标题前分页
Based on the SSM to reach the phone sales mall system
构建资源的弹性伸缩
[GXYCTF2019]BabySQli
Server Tips
关于科研学习中的几个问题:如何看论文?如何评价工作?如何找idea?
【openpyxl】过滤和排序
使用mysql语句操作数据表(table)