Skip to content

Commit cd77e42

Browse files
committed
[file ]: codeforce template
Signed-off-by: Bo-Wei Chen(BWbwchen) <[email protected]>
1 parent 74cc3bf commit cd77e42

File tree

3 files changed

+33
-1
lines changed

3 files changed

+33
-1
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
*.in
1515
.vscode
1616
*.sh
17-
Makefile
1817
a
1918
.clang-format
19+
codeforce/cf.cpp

codeforce/Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
all:
2+
@rm a
3+
g++ -g -std=c++17 -DDEBUG cf.cpp -o a
4+
./a
5+
6+
new:
7+
@rm cf.cpp in.in
8+
touch in.in
9+
cp template.cpp cf.cpp

codeforce/template.cpp

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#define MAXN 2000000000
2+
#define llu unsigned long long
3+
#include <algorithm>
4+
#include <cassert>
5+
#include <cmath>
6+
#include <iostream>
7+
#include <utility>
8+
#include <vector>
9+
#include <bits/stdc++.h>
10+
using namespace std;
11+
12+
13+
int main() {
14+
#ifdef DEBUG
15+
freopen("in.in", "r", stdin);
16+
#endif
17+
ios_base::sync_with_stdio(0);
18+
cin.tie(0);
19+
20+
// do something
21+
22+
return 0;
23+
}

0 commit comments

Comments
 (0)