maker

Anonymous
c_cpp
01/08/2024 6:43 AM
348 B
15
Indexable
#include<bits/stdc++.h>
using namespace std;

int main(){

	int n, m;
	cin >> n >> m;
	srand(time(0));

	for(int i = 0; i < m; i++){
		int q = 1+rand()%5;
		while(q--) cout << ((rand()%n)+1)*(rand()%2==0?1:-1) << " ";
		cout << "0" <<endl;
	}

}
Editor is loading...
Leave a Comment