-
-
Save rafaelgo2/403c8087112392a4597d1826c8d73d54 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
#define _ ios_base::sync_with_stdio(0);cin.tie(0); | |
#define endl '\n' | |
typedef long long ll; | |
int main(int argc, char *argv[]) { _ | |
int seed = atoi(argv[1]); | |
srand(seed); | |
int n = 10; | |
int m = 3; | |
string s; | |
for (int i = 0; i < n; i++) { | |
s += 'a' + rand()%3; | |
} | |
string t; | |
for (int i = 0; i < m; i++) { | |
t += 'a' + rand()%3; | |
} | |
cout << s << endl << t << endl; | |
exit(0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment