Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <algorithm>
- #include <utility>
- #include <vector>
- #include <set>
- #include <map>
- #include <queue>
- #include <stack>
- #include <cmath>
- #include <string>
- #include <cstring>
- #include <cstdio>
- #include <sstream>
- #include <iomanip>
- using namespace std;
- #define REP(i, n) for (int i = 0; i < (int)(n); i++)
- typedef pair<int, int> pii;
- string PROBLEM = "problem";
- void solve(int test) {
- cout << "test = " << test << endl;
- }
- void test(int test) {
- cerr << "Case #" << test << ":" << endl;
- stringstream ifile, ofile;
- ifile << PROBLEM << setfill('0') << setw(2) << test << ".in";
- ofile << PROBLEM << setfill('0') << setw(2) << test << ".ans";
- freopen(ifile.str().c_str(), "rt", stdin);
- freopen(ofile.str().c_str(), "wt", stdout);
- solve(test);
- }
- int main() {
- test(1);
- // test(2);
- // test(3);
- // test(4);
- // test(5);
- // test(6);
- // test(7);
- // test(8);
- // test(9);
- // test(10);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement