diff options
author | Anthony Wang | 2020-08-10 19:44:45 -0500 |
---|---|---|
committer | GitHub | 2020-08-10 19:44:45 -0500 |
commit | 1ce1172d4c378d83e2a18f0ba354fa59fdc17cb9 (patch) | |
tree | 18f1b8af616a577acc8feadc622498359bb0136b | |
parent | daf2ee609a9b79c68159e920d9fe75af25045382 (diff) |
Update template.cpp
-rw-r--r-- | Template/template.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Template/template.cpp b/Template/template.cpp index 8170b32..d9f9187 100644 --- a/Template/template.cpp +++ b/Template/template.cpp @@ -2,7 +2,6 @@ #include <ext/pb_ds/tree_policy.hpp> #include <ext/pb_ds/assoc_container.hpp> #include <ext/rope> -#define init_io ios_base::sync_with_stdio(false); cin.tie(NULL) #define FOR(i, a, b, in) for (int i = (a); i < (b); i += in) #define REP(i, a, b) for (int i = (a); i < (b); i++) #define RFOR(i, a, b, in) for (int i = (a) - 1; i >= (b); i -= in) @@ -37,7 +36,8 @@ constexpr ll MOD = 1e9+7; const ld PI = 4*atan((ld)1); int main() { - init_io(); + if (fopen("in", "r")) freopen("in", "r", stdin), freopen("out", "w", stdout); + ios_base::sync_with_stdio(0), cin.tie(0); } |