playground updated

This commit is contained in:
Hizenberg469
2024-11-30 23:25:28 +05:30
parent 9415c7f0c7
commit b46c486580
20 changed files with 837 additions and 566 deletions

View File

@@ -0,0 +1,31 @@
#include <bits/stdc++.h>
using namespace std;
int rnd(int a,int b){
return a + rand() % ( b - a + 1 );
}
int main(int argc, char* argv[]){
int seed = atoi(argv[1]);
srand(seed);
int n = rnd(1,20);
int k = rnd(20, 40);
cout << n << ' ' << k << '\n';
int val = 0;
for(int i = 0 ; i < n ; i++ ){
val = rnd(0,50);
cout << val << ' ';
}
cout << '\n';
return 0;
}