Skip to content

Commit

Permalink
c++ snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
semenInRussia committed May 17, 2024
1 parent be5bae9 commit 14a36d1
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 11 deletions.
5 changes: 5 additions & 0 deletions snippets/c++-mode/inf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: inf
# key: inf
# --
const ${1:int} inf = ${1:$(if (equal yas-text "int") "1e9" "1e18")};
5 changes: 5 additions & 0 deletions snippets/c++-mode/ll
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: ll
# key: ll
# --
using ll = long long;
5 changes: 5 additions & 0 deletions snippets/c++-mode/mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: mod
# key: mod
# --
const int mod =$0 1e9+7; // 998244353;
2 changes: 1 addition & 1 deletion snippets/c++-mode/module
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- mode: snippet -*-
# name: module
# key: mod
# key: module
# --
class ${1:Name} : public cSimpleModule
{
Expand Down
5 changes: 0 additions & 5 deletions snippets/c++-mode/multitester
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,9 @@
# key: !!
# --
// Copyright 2024 semenInRussia

#include <iostream>

using namespace std;

using ll = long long;
using pii = pair<int, int>;
const int inf = 1e9+7;

void solve() {
int n;
Expand Down
5 changes: 5 additions & 0 deletions snippets/c++-mode/pii
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: pii
# key: pii
# --
using pii = pair<int, int>;
5 changes: 0 additions & 5 deletions snippets/c++-mode/skeleton
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,9 @@
# key: !
# --
// Copyright 2024 semenInRussia

#include <iostream>

using namespace std;

using ll = long long;
using pii = pair<int, int>;
const int inf = 1e9+7;

int main() {
int n;
Expand Down

0 comments on commit 14a36d1

Please sign in to comment.