diff --git a/snippets/c++-mode/inf b/snippets/c++-mode/inf new file mode 100644 index 00000000..1e1f6811 --- /dev/null +++ b/snippets/c++-mode/inf @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: inf +# key: inf +# -- +const ${1:int} inf = ${1:$(if (equal yas-text "int") "1e9" "1e18")}; \ No newline at end of file diff --git a/snippets/c++-mode/ll b/snippets/c++-mode/ll new file mode 100644 index 00000000..a1648cb0 --- /dev/null +++ b/snippets/c++-mode/ll @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: ll +# key: ll +# -- +using ll = long long; \ No newline at end of file diff --git a/snippets/c++-mode/mod b/snippets/c++-mode/mod new file mode 100644 index 00000000..a75fd5ca --- /dev/null +++ b/snippets/c++-mode/mod @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: mod +# key: mod +# -- +const int mod =$0 1e9+7; // 998244353; \ No newline at end of file diff --git a/snippets/c++-mode/module b/snippets/c++-mode/module index 9155d5be..146f61b8 100644 --- a/snippets/c++-mode/module +++ b/snippets/c++-mode/module @@ -1,6 +1,6 @@ # -*- mode: snippet -*- # name: module -# key: mod +# key: module # -- class ${1:Name} : public cSimpleModule { diff --git a/snippets/c++-mode/multitester b/snippets/c++-mode/multitester index 20facd4c..61289c56 100644 --- a/snippets/c++-mode/multitester +++ b/snippets/c++-mode/multitester @@ -3,14 +3,9 @@ # key: !! # -- // Copyright 2024 semenInRussia - #include - using namespace std; - using ll = long long; -using pii = pair; -const int inf = 1e9+7; void solve() { int n; diff --git a/snippets/c++-mode/pii b/snippets/c++-mode/pii new file mode 100644 index 00000000..aeaa5ed9 --- /dev/null +++ b/snippets/c++-mode/pii @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: pii +# key: pii +# -- +using pii = pair; \ No newline at end of file diff --git a/snippets/c++-mode/skeleton b/snippets/c++-mode/skeleton index d3c437a1..2d29a0b0 100644 --- a/snippets/c++-mode/skeleton +++ b/snippets/c++-mode/skeleton @@ -3,14 +3,9 @@ # key: ! # -- // Copyright 2024 semenInRussia - #include - using namespace std; - using ll = long long; -using pii = pair; -const int inf = 1e9+7; int main() { int n;