diff options
author | Anthony Wang | 2020-08-09 16:23:25 -0500 |
---|---|---|
committer | GitHub | 2020-08-09 16:23:25 -0500 |
commit | b6c8fc2cf16504c935121d3eaad25aea808bea35 (patch) | |
tree | 4e22ba1d424219cb96feed6847fe9e9306b0dc71 | |
parent | de3301ba32735f5b93653705ac4de23f0a1e66c1 (diff) |
Update basic.cpp
-rw-r--r-- | Template/basic.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Template/basic.cpp b/Template/basic.cpp index 515a59e..32aa7b6 100644 --- a/Template/basic.cpp +++ b/Template/basic.cpp @@ -6,7 +6,8 @@ using ll = long long; using ii = pair<int, int>; int main() { - ios_base::sync_with_stdio(0), cin.tie(0); - - + if (fopen("in", "r")) freopen(("in", "r", stdin), freopen("out", "w", stdout); + ios_base::sync_with_stdio(0), cin.tie(0); + + } |