Repository navigation
Expand file tree
/
Copy pathtemplate.sublime-snippet
More file actions
74 lines (63 loc) · 1.8 KB
/
Copy pathtemplate.sublime-snippet
File metadata and controls
74 lines (63 loc) · 1.8 KB
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
<snippet>
<content><![CDATA[
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using ll = long long;
using ld = long double;
using namespace __gnu_pbds;
using ull = unsigned long long;
#define endl '\n'
#define sqr(x) (x) * (x)
#define gcd(x,y) __gcd(x,y)
#define sz(x) (int)x.size()
#define lcm(x,y) ((x/gcd(x,y)) * y)
#define all(x) (x).begin(),(x).end()
#define rall(x) (x).rbegin(),(x).rend()
#define prec(x) fixed<<setprecision(x)
#define testcase cout << "Case " << cs++ << ":"
//stol(s);sqrtl() to_string(x);
template <typename T>
using minHeap = priority_queue<T, vector<T>, greater<T>>;
#define unsyncIO ios_base::sync_with_stdio(false); cin.tie(nullptr)
template <class T> using orderset = tree<T, null_type,
less<T>, rb_tree_tag, tree_order_statistics_node_update>;
template <class T> using multiorderset = tree<T, null_type,
less_equal<T>, rb_tree_tag,tree_order_statistics_node_update>;
const ld PI = acos((ld) - 1);
const int MOD = 1e9 + 7;
const ll INF = 2e18 + 1;
const ld EPS = 1e-9;
const int MX = 2e6;
int cs = 1;
#ifdef LOCAL
#include "debug.h"
#else
#define debug(...)
#endif
void solve(){
$0
}
int main() {
#ifdef LOCAL
clock_t tStart = clock();
#endif
unsyncIO;
int t = 1;
//cin >> t;
//cin.ignore();
while (t--) {
solve();
}
#ifdef LOCAL
cerr << "\nRuntime: " << (ld) (clock() - tStart) / CLOCKS_PER_SEC << " Seconds" << endl;
#endif
return 0;
}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>#include</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.c++</scope>
</snippet>