-
Notifications
You must be signed in to change notification settings - Fork 0
/
read.snippets
91 lines (80 loc) · 1.27 KB
/
read.snippets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
snippet ri "int"
int ${1:n}; cin >> $1;
$0
endsnippet
snippet rl "long"
ll $1; cin >> $1;
$0
endsnippet
snippet rii "int,int"
int ${1:n}, ${2:k};
cin >> $1 >> $2;
$0
endsnippet
snippet ril "int,long"
int ${1:n}; ll ${2:k};
cin >> $1 >> $2;
$0
endsnippet
snippet rli "long,int"
ll $1; int $2;
cin >> $1 >> $2;
$0
endsnippet
snippet rll "long,long"
ll $1, ${2:k};
cin >> $1 >> $2;
$0
endsnippet
snippet rivi "int,vecint"
int ${1:n}; cin >> $1;
vector<int> ${2:a}($1);
for (int i = 0; i < $1; ++i) {
cin >> $2[i];
}
$0
endsnippet
snippet riivi "int,int,vecint"
int ${1:n}, ${2:k};
cin >> $1 >> $2;
vector<int> ${3:a}($1);
for (int i = 0; i < $1; ++i) {
cin >> $3[i];
}
$0
endsnippet
snippet rilvi "int,long,vecint"
int ${1:n}; ll ${2:k};
cin >> $1 >> $2;
vector<int> ${3:a}($1);
for (int i = 0; i < $1; ++i) {
cin >> $3[i];
}
$0
endsnippet
snippet rivl "int,veclong"
int ${1:n}; cin >> $1;
vector<ll> ${2:a}($1);
for (int i = 0; i < $1; ++i) {
cin >> $2[i];
}
$0
endsnippet
snippet riivl "int,int,veclong"
int ${1:n}, ${2:k};
cin >> $1 >> $2;
vector<ll> ${3:a}($1);
for (int i = 0; i < $1; ++i) {
cin >> $3[i];
}
$0
endsnippet
snippet rilvl "int,long,veclong"
int ${1:n}; ll ${2:k};
cin >> $1 >> $2;
vector<ll> ${3:a}($1);
for (int i = 0; i < $1; ++i) {
cin >> $3[i];
}
$0
endsnippet