{
"#include":{
"prefix": "#include",
"body": [
"#include<bits/stdc++.h>",
"using namespace std;",
"typedef pair<int, int> PII;",
"const int N = 1e8;",
"typedef long long ll;",
//"long long a[N];",
//"",
"int main(){",
" ios::sync_with_stdio(false), cin.tie(0), cout.tie(0);",
" ll n;",
" return 0;",
"}",
],
}
,"forcin":{
"prefix": "forcin",
"body":[
"for(int i = 1;i <= n;i++){",
" cin >> a[i];",
"}"
],
},
"forcout":{
"prefix": "forcout",
"body": [
"for(int i = 1;i <= n;i++){",
" cout << a[i];",
"}"
]
},
"fangxiang[]":{
"prefix": "fangxiang[]",
"body": [
"int dx[] = {1, -1, 0, 0};",
"int dy[] = {0, 0, 1, -1};",
],
},
"max":{
"prefix": "max",
"body": [
"if(sum < a[i]){",
" sum = a[i];",
"}",
],
},
"min":{
"prefix": "min",
"body":[
"if(sum < a[i]){",
" sum = a[i];",
"}",
],
},
"cin":{
"prefix": "cin ",
"body": [
"cin >> ",
],
},
"cout":{
"prefix": "cout ",
"body": [
"cout << ",
],
},
}
当输入prefix的内容时,按下Enter或是Tab键时,将会补全body中的内容