//Place your snippets for cpp here. Each snippet is defined under a snippet name and has a prefix, body and 
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the 
// same ids are connected.
// prefix 的格式要求是 acm-[一级标题编号].[二级标题编号][该代码片段的英文简称]
// description 的格式要求是 "插入 [该代码片段的中文名]"

{
    "manacher(仅适用于找最长回文长度)": {
        "prefix": "acm-6.2玄学150ms",
        "body": [
            "// luogu-judger-enable-o2",
            "#include<cstdio>",
            "char a[11550000]={'$'};int T,i,s,l,r;",
            "int main(){",
            "    gets(a+1);",
            "    for(i=1;a[i];++i){",
            "        l=r=i;",
            "        while(a[i]==a[r+1])++r;",
            "        i=r;",
            "        while(a[r+1]==a[l-1])++r,--l;",
            "        if(r-l+1>s)s=r-l+1;",
            "    }",
            "    printf(\"%d\",s);",
            "}",
            ""
        ],
        "description": "插入 manacher(仅适用于找最长回文长度)"
    }
}