1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#include<iostream>

int main() {
	int n, m;
	std::cin >> n >> m;
	srand(time(0));
	for (int i = 0; i < n + m; i++) {
		if (rand() % 4 == 0) {
			std::cout << rand() % 100 + 1 << " ";
		}
		else {
			std::cout << "0 ";
		}
	}
}