Skip to content

Commit 2c5dc1c

Browse files
committed
Add template
1 parent f48d7ea commit 2c5dc1c

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

README renamed to README.md

File renamed without changes.

template.cpp

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#include<bits/stdc++.h>
2+
using namespace std;
3+
#define __ ios_base::sync_with_stdio(0); cin.tie(0);
4+
5+
#define fr(i,j,n) for(int i=j;i<n;i++)
6+
#define FR(i,n) fr(i,0,n)
7+
#define foreach(it, x) for(typeof (x).begin() it = (x).begin(); it != (x).end(); ++it)
8+
#define all(x) x.begin(),x.end()
9+
#define D(x) cout << #x " = " << (x) << endl;
10+
11+
template <class T> string toStr(const T &x)
12+
{ stringstream s; s << x; return s.str(); }
13+
14+
template <class T> int toInt(const T &x)
15+
{ stringstream s; s << x; int r; s >> r; return r; }
16+
17+
int dx[8] = {-1,-1,-1,0,1,1, 1, 0};
18+
int dy[8] = {-1, 0, 1,1,1,0,-1,-1};
19+
20+
typedef long long ll;
21+
typedef vector<int> vi;
22+
typedef pair<int,int> pii;
23+
24+
int main(){
25+
26+
return 0;
27+
}

0 commit comments

Comments
 (0)