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

{
    "快读 +快输 (int)": {
        "prefix": "acm-1.5int+double",
        "body": [
            "#include<cstdio>",
            "#define LD double",
            "#define Re register int",
            "inline void in(Re &x){",
            "    int f=0;x=0;char c=getchar();",
            "    while(c<'0'||c>'9')f|=c=='-',c=getchar();",
            "    while(c>='0'&&c<='9')x=(x<<1)+(x<<3)+(c^48),c=getchar();",
            "    x=f?-x:x;",
            "}",
            "inline void print(Re x){",
            "\tif(x<0)putchar('-'),x=-x;",
            "\tif(x>9)print(x/10);putchar(x%10+'0');",
            "}",
            "inline LD LDin(){",
            "\tLD X=0,Y=1.0;int f=0;char c=getchar();",
            "\twhile(c<'0'||c>'9')f|=c=='-',c=getchar(); ",
            "\twhile(c>='0'&&c<='9')X=X*10+(c^48),c=getchar(); ",
            "\tif(c=='.'){c=getchar();while(c>='0'&&c<='9')X+=(Y/=10)*(c^48),c=getchar();}",
            "\treturn f?-X:X;",
            "}",
            "int main(){}",
            ""
        ],
        "description": "插入 快读 +快输 (int)"
    }
}