You have a necklace of N red, white, or blue beads (3<=N<=350) some of which are red, others blue, and others white, arranged at random. Here are two ...
分类:
其他好文 时间:
2017-10-25 11:24:18
阅读次数:
150
1092. To Buy or Not to Buy (20) 时间限制 100 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue 时间限制 100 ms 时间限制 100 ms 内存限制 65536 kB 内存限制 65536 k ...
分类:
其他好文 时间:
2017-10-03 00:50:11
阅读次数:
199
来源: CE1998 题目大意: 求字符串最小表示。 思路: 字符串复制一遍接在后面,构建SAM,然后每次跑小的转移。 跑n次以后就跑到了最小表示的末尾,用该状态的len值减去n就是最小表示的起始位置。 ...
分类:
其他好文 时间:
2017-09-15 16:47:22
阅读次数:
163
Once upon a time there was a famous actress. As you may expect, she played mostly Antique Comedies most of all. All the people loved her. But she was ...
分类:
其他好文 时间:
2017-07-24 21:36:45
阅读次数:
213
Broken Necklace You have a necklace of N red, white, or blue beads (3<=N<=350) some of which are red, others blue, and others white, arranged at rando ...
分类:
其他好文 时间:
2017-07-19 23:27:18
阅读次数:
235
Eva would like to make a string of beads with her favorite colors so she went to a small shop to buy some beads. There were many colorful strings of b ...
分类:
其他好文 时间:
2017-07-10 20:21:44
阅读次数:
237
题目描述 Zxl有一次决定制造一条项链,她以非常便宜的价格买了一长条鲜艳的珊瑚珠子,她现在也有一个机器,能把这条珠子切成很多块(子串),每块有k(k>0)个珠子,如果这条珠子的长度不是k的倍数,最后一块小于k的就不要拉(nc真浪费),保证珠子的长度为正整数。 Zxl喜欢多样的项链,为她应该怎样选择数 ...
分类:
其他好文 时间:
2017-07-09 23:03:40
阅读次数:
216
Necklace of Beads Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 630 Accepted Submission(s): 232 ...
分类:
其他好文 时间:
2017-07-05 16:37:05
阅读次数:
242
题目链接:hdu 1817 Necklace of Beads 这题的弱化版:传送门 1 #include<bits/stdc++.h> 2 #define F(i,a,b) for(int i=a;i<=b;++i) 3 using namespace std; 4 typedef long lo ...
分类:
其他好文 时间:
2017-06-23 22:03:54
阅读次数:
190