Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- void solve(ifstream& in, ofstream& out) {
- }
- int main() {
- int tests = 10;
- for (int i = 1; i <= tests; ++i) {
- stringstream ss;
- ss << setfill('0') << setw(2) << i;
- string test_name = ss.str();
- string in_full = "tests/" + test_name + ".in";
- string out_full = "output/" + test_name + ".out";
- ifstream in(in_full);
- if (in.good()) {
- ofstream out(out_full);
- solve(in, out);
- in.close();
- out.close();
- } else {
- cout << "Problem reading " << in_full << "\n";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement