# include
# include
# include
# define MAX 55
using namespace std;
int L;
char a[MAX];
int vis[MAX];
int judge1()//ababa
{
int i,j;
int xx,yy,zz;
char x[MAX],y[MAX],z[MAX];
for(i=2...
分类:
其他好文 时间:
2014-09-09 13:05:58
阅读次数:
197
Pretty Poem
Time Limit: 2 Seconds Memory Limit: 65536 KB
Poetry is a form of literature that uses aesthetic and rhythmic qualities of language. There are many famous poets in the contempo...
分类:
其他好文 时间:
2014-09-09 12:48:38
阅读次数:
254
ZOJ Problem Set - 3818
Pretty Poem
Time Limit: 2 Seconds
Memory Limit: 65536 KB
Poetry is a form of literature that uses aesthetic and rhythmic qualities of language. There are many f...
分类:
其他好文 时间:
2014-09-08 10:54:26
阅读次数:
272
Pretty Poem
Time Limit: 2 Seconds Memory Limit: 65536 KB
Poetry is a form of literature that uses aesthetic and rhythmic qualities of language. There are many famous poets in the contempora...
分类:
其他好文 时间:
2014-09-08 10:52:56
阅读次数:
334
题目链接:点击打开链接
#include
#include
#include
#include
using namespace std;
const int N = 55;
char a[N], b[N];
int main() {
int T;
scanf("%d", &T);
while(T-- > 0) {
scanf("%s", a);
int Len = ...
分类:
其他好文 时间:
2014-09-07 19:52:45
阅读次数:
186
第一种情况:ABABA。 先判断开头的A与结尾的A,得到A的长度,接着判断ABAB 中的AB与AB是否相同(ABAB的长度一定为偶数)
已经知道了A长度,AB的长度 接着判断下A 与B是否相同
第二种情况:ABABCAB-可先讲AB看成整体即DDCD 若存在一个D满足条件 可得到C的长度和位置再判断A-B是否相同A-C是否相同 B-C是否相同(暴力取A的长度咯)
#include
#i...
分类:
其他好文 时间:
2014-09-07 19:51:44
阅读次数:
258
Pretty PoemTime Limit:2 Seconds Memory Limit:65536 KBPoetry is a form of literature that uses aesthetic and rhythmic qualities of language. There are ...
分类:
其他好文 时间:
2014-09-07 17:16:55
阅读次数:
314
Poetry is a form of literature that uses aesthetic and rhythmic qualities of language. There are many famous poets in the contemporary era. It is said...
分类:
其他好文 时间:
2014-09-07 17:16:45
阅读次数:
266
一、查看修改日志信息1)git log:显示最近到最远的提交日志 添加参数--pretty=oneline:查看简单的日志信息。二、进行恢复到先前版本1)在Git中,HEAD表示当前版本,上一个版本就是HEAD^,上上一个版本就是HEAD^^ 网上100个版本就是HEAD~100.2)将当...
分类:
其他好文 时间:
2014-09-05 23:33:32
阅读次数:
310