跳到正文

剪贴板

剪贴板 2scl6dyi

lijingshu
原文
剪贴板信息

剪贴板信息

发布
收录
更新
JSON
{
	"base": {
        "prefix": "base", 
		"body": [
            "#include<bits/stdc++.h>",
			"using namespace std;",
			"",
			"int main(){",
			"",
			"    return 0;",
			"}",
		],
        "description": "basic components"
	},
	"fread": {
		"prefix": "fread",
		"body": [
			"int read(){",
			"    int s = 0, f = 1;",
			"    char ch = getchar();",
			"    while(ch < '0' || ch > '9'){",
			"        if(ch == '-') f = -1;",
			"        ch = getchar();",
			"    }",
			"    while(ch >= '0' && ch <= '9'){",
			"        s = s * 10 + ch - '0';",
			"        ch = getchar();",
			"    }",
			"    return s * f;",
			"}"
		],
		"description": "fast read"
	},
	"file": {
		"prefix": "file",
		"body": [
			"#ifn$2def ONLINE_JUDGE\n\tfreopen(\"$1.in\", \"r\", stdin);\n\tfreopen(\"$1.out\", \"w\", stdout);\n#endif\n\n$0"
		],
		"description": "file"
	},
	"fast cin and cout": {
		"prefix": "fcincout",
		"body": [
			"ios::sync_with_stdio(false);",
			"cin.tie(0), cout.tie(0);"
		],
		"description": "fast cin and cout"
	},
	"LL": {
		"prefix": "LL",
		"body": [
			"typedef long long ll;"
		],
		"description": "long long"
	}
}