aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Template/basic.cpp4
-rw-r--r--Template/template.cpp8
-rw-r--r--Template/usaco.cpp8
3 files changed, 10 insertions, 10 deletions
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, int>;
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<typename T> using ordered_multiset = tree<T, null_type, less_equal<T>,
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<typename T> using ordered_set = tree<T, null_type, less<T>, rb_tree_tag
template<typename T> using ordered_multiset = tree<T, null_type, less_equal<T>, 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");
-
+
}