字符串
文章平均质量分 73
普通网友
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
周期串
如果一个字符串可以由某个长度 为k的字符串重复多次得到,我们说该串以k为周期。输入一个长度不超过80的串,输出它的最小周期。 #include #include using namespace std; int main() { string s; while(cin>>s) { int n=s.size(); for(int i=1;i<n;i+原创 2013-08-12 15:00:34 · 452 阅读 · 0 评论 -
Dinner
Description Little A is one member of ACM team. He had just won the gold in World Final. To celebrate, he decided to invite all to have one meal. As bowl, knife and other tableware is not enough in原创 2014-02-15 09:36:48 · 556 阅读 · 0 评论
分享