Skip to content

Instantly share code, notes, and snippets.

@rafaelgo2
Created January 24, 2022 01:59
Show Gist options
  • Save rafaelgo2/403c8087112392a4597d1826c8d73d54 to your computer and use it in GitHub Desktop.
Save rafaelgo2/403c8087112392a4597d1826c8d73d54 to your computer and use it in GitHub Desktop.
#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