Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- #define TEST 200
- using namespace std;
- const string folder_name = "TROPHIES";
- ///program's variable
- string input_path = folder_name + "/input";
- string file_path;
- int t;
- string s;
- unordered_map<int, char> cnv;
- ///end
- long long Rand(long long l, long long h){
- return l + rand() % (h - l + 1);
- }
- int main(){
- srand(time(NULL));
- system(string("rm -r -f " + folder_name).c_str());
- system(string("mkdir -p " + folder_name).c_str());
- system(string("mkdir -p " + input_path).c_str());
- cnv[0] = 'G', cnv[1] = 'S';
- ///input starts here
- for(int test = 0; test <= TEST; ++test){
- ofstream inp(string(input_path + "/" + "input" + to_string(test) + ".txt").c_str());
- s.clear();
- t = Rand(1, 1e5);
- while(--t >= 0) s += cnv[Rand(1, 100) % 2];
- }
- ///end
- return 0;
- }
Add Comment
Please, Sign In to add comment