maker
unknown
c_cpp
2 years ago
260 B
6
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