Advertisement
Guest User

Untitled

a guest
Feb 25th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. #include <algorithm>
  4. #include <utility>
  5. #include <vector>
  6. #include <set>
  7. #include <map>
  8. #include <queue>
  9. #include <stack>
  10. #include <cmath>
  11. #include <string>
  12. #include <cstring>
  13. #include <cstdio>
  14. #include <sstream>
  15. #include <iomanip>
  16. using namespace std;
  17.  
  18. #define REP(i, n) for (int i = 0; i < (int)(n); i++)
  19.  
  20. typedef pair<int, int> pii;
  21.  
  22. string PROBLEM = "problem";
  23.  
  24. void solve(int test) {
  25. cout << "test = " << test << endl;
  26. }
  27.  
  28. void test(int test) {
  29. cerr << "Case #" << test << ":" << endl;
  30. stringstream ifile, ofile;
  31. ifile << PROBLEM << setfill('0') << setw(2) << test << ".in";
  32. ofile << PROBLEM << setfill('0') << setw(2) << test << ".ans";
  33. freopen(ifile.str().c_str(), "rt", stdin);
  34. freopen(ofile.str().c_str(), "wt", stdout);
  35. solve(test);
  36. }
  37.  
  38. int main() {
  39. test(1);
  40. // test(2);
  41. // test(3);
  42. // test(4);
  43. // test(5);
  44. // test(6);
  45. // test(7);
  46. // test(8);
  47. // test(9);
  48. // test(10);
  49. return 0;
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement