diff --git a/Template/basic.cpp b/Template/basic.cpp index dabaf92..a0e3d5e 100644 --- a/Template/basic.cpp +++ b/Template/basic.cpp @@ -6,8 +6,8 @@ using ll = long long; using ii = pair; int main() { - if (fopen("in", "r")) freopen("in", "r", stdin), freopen("out", "w", stdout); - 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); } diff --git a/Template/template.cpp b/Template/template.cpp index e43a502..80b2748 100644 --- a/Template/template.cpp +++ b/Template/template.cpp @@ -24,8 +24,8 @@ template using ordered_multiset = tree, constexpr int INF = 1e9; constexpr ll LINF = 1e18; constexpr ll MOD = 1e9+7; constexpr ld PI = 4*atan((ld)1); int main() { - if (fopen("in", "r")) freopen("in", "r", stdin), freopen("out", "w", stdout); - 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); + + } diff --git a/Template/usaco.cpp b/Template/usaco.cpp index e550725..f730b4c 100644 --- a/Template/usaco.cpp +++ b/Template/usaco.cpp @@ -23,13 +23,13 @@ template using ordered_set = tree, rb_tree_tag template using ordered_multiset = tree, rb_tree_tag, tree_order_statistics_node_update>; // Use with caution constexpr int INF = 1e9; constexpr ll LINF = 1e18; constexpr ll MOD = 1e9+7; constexpr ld PI = 4*atan((ld)1); void io(const str & s) { - if (fopen((s+".in").c_str(), "r")) freopen((s+".in").c_str(), "r", stdin), freopen((s+".out").c_str(), "w", stdout); - ios_base::sync_with_stdio(0), cin.tie(0); + if (fopen((s+".in").c_str(), "r")) freopen((s+".in").c_str(), "r", stdin), freopen((s+".out").c_str(), "w", stdout); + ios_base::sync_with_stdio(0), cin.tie(0); } int main() { - io("name"); + io("name"); - + }