-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathrun_data.cpp
66 lines (61 loc) · 1.38 KB
/
run_data.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <stdlib.h>
#include <time.h>
#include <unordered_map>
#include <vector>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
const int INF = 1e9;
typedef pair<int, int> pii;
void fanfa(vector<int> &number, int cishu)
{
for (int i = 1; i <= cishu; i++) {
number.push_back(i);
}
std::random_shuffle(number.begin(), number.end());
}
void fanfa2(vector<int> &number, int t, int sum)
{
int ns = 0;
for (int i = 0; i < t - 1; i++) {
ns = rand() % 300 + 1;
number.push_back(ns);
sum -= ns;
}
number.push_back(sum);
}
int main()
{
freopen("1.in", "w", stdout);
srand((unsigned)time(0));
int n = 100000;
cout << n << endl;
for (int i = 0; i < n; i++)
cout << 'b';
cout << endl;
// int m = 100;
// for (int i = 1; i <= n; i++) {
// int k = rand() % m + 1;
// string s;
// for (int j = 1; j <= k; j++) {
// int flag = rand() % 2 + 1;
// char c;
// if (flag == 1)
// c = rand() % 26 + 65;
// else
// c = rand() % 26 + 97;
// s.push_back(c);
// }
// cout << s << endl;
// }
fclose(stdin);
fclose(stdout);
return 0;
}