Skip to content

Commit

Permalink
[file ]: codeforce add template
Browse files Browse the repository at this point in the history
  • Loading branch information
BWbwchen committed Apr 30, 2024
1 parent 74cc3bf commit 0f34dc0
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
*.in
.vscode
*.sh
Makefile
a
.clang-format
codeforce/cf.cpp
8 changes: 8 additions & 0 deletions codeforce/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
all:
g++ cf.cpp -DDEBUG -g -std=c++17 -o a
./a

new:
-@rm cf.cpp in.in
cp template.cpp cf.cpp
touch in.in
23 changes: 23 additions & 0 deletions codeforce/template.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#define MAXN 2000000000
#define llu unsigned long long
#include <algorithm>
#include <cassert>
#include <cmath>
#include <iostream>
#include <utility>
#include <vector>
#include <bits/stdc++.h>
using namespace std;


int main() {
#ifdef DEBUG
freopen("in.in", "r", stdin);
#endif
ios_base::sync_with_stdio(0);
cin.tie(0);

// do something

return 0;
}

0 comments on commit 0f34dc0

Please sign in to comment.