//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 的格式要求是 "插入 [该代码片段的中文名]"

{
    "筛素数": {
        "prefix": "acm-7.1埃氏筛",
        "body": [
            "#include<cstdio>",
            "#define R register int",
            "int pri[10005],pan[10005],gs;",
            "inline void creat_prime(){",
            "\tfor(R i=2;i<=10000;i++)",
            "\t\tif(pan[i]==0){",
            "\t\t\tpri[++gs]=i;",
            "\t\t\tfor(R j=2;i*j<=10000;j++)pan[i*j]=1;",
            "\t\t}",
            "}",
            "inline int sakura(){",
            "\tcreat_prime();",
            "\tfor(R i=1;i<=gs;i++)printf(\"%d\\n\",pri[i]);",
            "}",
            "int QAQWQ=sakura();",
            "int main(){}",
            ""
        ],
        "description": "插入 筛素数"
    }
}