//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.1sqrt(n",
        "body": [
            "#include<cstdio>",
            "#define Re register int",
            "int n;",
            "inline int phi(Re x){",
            "\tRe ans=x;",
            "\tfor(Re i=2;i*i<=x;i++)",
            "\t\tif(x%i==0){",
            "\t\t\tans/=i,ans*=i-1;",
            "\t\t\twhile(x%i==0)x/=i;",
            "\t\t}",
            "\tif(x>1)ans/=x,ans*=x-1;",
            "\treturn ans;",
            "}",
            "int main(){",
            "\tscanf(\"%d\",&n),printf(\"%d\\n\",phi(n));",
            "}",
            ""
        ],
        "description": "插入 欧拉函数 暴力)"
    }
}