Untitled
unknown
c_cpp
2 years ago
380 B
11
Indexable
#include<bits/stdc++.h>
using namespace std;
int main(){
int n, m, a, b;
cout << "varNum: ";
cin >> n;
cout << "clauseNum: ";
cin >> m;
cout << "min: ";
cin >> a;
cout << "max: ";
cin >> b;
srand(time(0));
for(int i = 0; i < m; i++){
int q = a+rand()%b;
while(q--) cout << ((rand()%n)+1)*(rand()%2==0?1:-1) << " ";
cout << "0" <<endl;
}
}
Editor is loading...
Leave a Comment