aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2020-12-13 19:48:29 -0600
committerAnthony Wang2020-12-13 19:48:29 -0600
commit96676ff58ceb149a2f7f0255343651c9fd5481e2 (patch)
treef2603bb7ae3eb852d353a3fdbcec3ee0f90342f0
parentebf0e5d4db0f9973a373846ff5053f6ddc51f587 (diff)
Update templates
-rw-r--r--Template/basic.cpp1
-rw-r--r--Template/template.cpp1
-rw-r--r--Template/usaco.cpp1
3 files changed, 3 insertions, 0 deletions
diff --git a/Template/basic.cpp b/Template/basic.cpp
index 71201ad..2bbd994 100644
--- a/Template/basic.cpp
+++ b/Template/basic.cpp
@@ -6,6 +6,7 @@ using ll = long long;
using ii = pair<int, int>;
constexpr int MX = 1e5+5;
+
int main() {
if (fopen("in", "r")) freopen("in", "r", stdin), freopen("out", "w", stdout);
ios_base::sync_with_stdio(0), cin.tie(0);
diff --git a/Template/template.cpp b/Template/template.cpp
index 7bb7acf..564c6d5 100644
--- a/Template/template.cpp
+++ b/Template/template.cpp
@@ -28,6 +28,7 @@ constexpr ld PI = 4*atan((ld)1);
constexpr ll INF = 1e9, LINF = 1e18, MOD = 1e9+7;
constexpr int MX = 1e5+5;
+
int main() {
if (fopen("in", "r")) freopen("in", "r", stdin), freopen("out", "w", stdout);
ios_base::sync_with_stdio(0), cin.tie(0);
diff --git a/Template/usaco.cpp b/Template/usaco.cpp
index 6344553..fa65432 100644
--- a/Template/usaco.cpp
+++ b/Template/usaco.cpp
@@ -29,6 +29,7 @@ constexpr ld PI = 4*atan((ld)1);
constexpr ll INF = 1e9, LINF = 1e18, MOD = 1e9+7;
constexpr ll MX = 1e5+5;
+
int main() {
io("name");