Advertisement
Guest User

Untitled

a guest
Nov 15th, 2020
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.58 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int rand(int a, int b) {
  5.     return a + rand() % (b - a + 1);
  6. }
  7.  
  8. void each_test_case(void) {
  9.  
  10. }
  11.  
  12. void generate(void){
  13.     int t = 1;
  14.     if (!true) {
  15.         t = rand(1, 10000);
  16.         cout << t << endl;
  17.     }
  18.     while (t--) {
  19.         each_test_case();
  20.     }
  21. }
  22.  
  23. int main(void) {
  24.     srand(time(0));
  25.     int number_of_files = 2;
  26.     for(int i = 1; i <= number_of_files; ++i) {
  27.         char output[7] = "input_";
  28.         output[6] = i + '0';
  29.         freopen(output, "w", stdout);
  30.         generate();
  31.     }
  32.     return 0;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement