aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2020-12-13 19:50:09 -0600
committerAnthony Wang2020-12-13 19:50:09 -0600
commitee9de380fab7aef3648972a0e8ea942a4df61c8b (patch)
treed827e019751894bcd2c3c60577e1d10a9552145a
parent96676ff58ceb149a2f7f0255343651c9fd5481e2 (diff)
Update USACO template
-rw-r--r--Template/usaco.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Template/usaco.cpp b/Template/usaco.cpp
index fa65432..057e999 100644
--- a/Template/usaco.cpp
+++ b/Template/usaco.cpp
@@ -2,7 +2,7 @@
#include <ext/pb_ds/tree_policy.hpp>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/rope>
-#define io(name) freopen((str(name)+".in").c_str(), "r", stdin), freopen((str(name)+".out").c_str(), "w", stdout), ios_base::sync_with_stdio(0), cin.tie(0)
+#define io(name) freopen((str(name)+".in").c_str(), "r", stdin), freopen((str(name)+".out").c_str(), "w", stdout)
#define f first
#define s second
#define mp make_pair
@@ -31,8 +31,8 @@ constexpr ll MX = 1e5+5;
int main() {
- io("name");
-
+ io("name"); if (fopen("in", "r")) freopen("in", "r", stdin), freopen("out", "w", stdout);
+ ios_base::sync_with_stdio(0), cin.tie(0);
}