- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.cpp
More file actions
Latest commit
21 lines (17 loc) · 431 Bytes
/
Copy pathtemplate.cpp
File metadata and controls
21 lines (17 loc) · 431 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include<bits/stdc++.h>
usingnamespacestd;
using ll = longlong;
voidsetIO(const string& name = "") {
ios::sync_with_stdio(false);
cin.tie(nullptr);
#ifdef ZK_LOCAL_RUN
freopen("f.in", "r", stdin);
freopen("f.out", "w", stdout);
#else
if (!name.empty()) {
freopen((name + ".in").c_str(), "r", stdin);
freopen((name + ".out").c_str(), "w", stdout);
}
#endif
}
intmain() { setIO(); }