-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestcasegenerator.cpp
More file actions
61 lines (58 loc) · 1.22 KB
/
testcasegenerator.cpp
File metadata and controls
61 lines (58 loc) · 1.22 KB
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
#include <bits/stdc++.h>
#include <algorithm>
using namespace std;
#define boost ios_base::sync_with_stdio(false);cin.tie(NULL);
typedef long long int ll;
#define ass 1e18
#define MOD 1000007
#define mp make_pair
#define pb push_back
#define pf push_front
#define pob pop_back
#define pof pop_front
#define fi first
#define se second
#define sz(x) (ll)x.size()
#define present(c,x) ((c).find(x) != (c).end())
#define debug(x) cout << #x << ": " << x << endl;
#define debug2(x,y) cout<<#x<<": "<< x<< ", "<< #y<< ": "<< y<< endl;
#define debug3(x,y,z) cout<<#x<<": "<< x<< ", "<< #y<< ": "<< y<<" "<<#z<<" : "<<z<< endl;
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
#define ordered_set tree<ll, null_type,less<ll>, rb_tree_tag,tree_order_statistics_node_update>
ll cal()
{
ll a=rand()%MOD+1;
ll b=rand()%MOD+1;
//debug(a*b);
return a*b;
}
void solve()
{
ll q=100000;
cout<<q<<"\n";
srand(time(0));
for(int i=1;i<=q;i++)
{
ll n,a=1,b=1;
while(a==b)
{
n=cal()+1;
a=cal()%10+1;
b=cal()%10+1;
}
cout<<n<<" "<<a<<" "<<b<<"\n";
}
}
int main()
{
boost
freopen("input.txt", "w", stdout);
ll t=1;
while(t--)
{
solve();
}
return 0;
}