Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
524 B
0
Indexable
Never
#include <iostream> 
using namespace std;
int main() {
	char mas[100][100];
	int a, b, c, d, e;
	char n;
	cin >> a;
	for (int i = 0; i < 100; i++) {
		for (int j = 0; j < 100; j++) {
			mas[i][j] = '.';
		}
	}
	for (int k = 0; k < a; k++){
		cin >> b >> e >> n >> c >> d;
		for (int i = c; i < c+b+1; i++){
			for (int j = d; j < d+e+1; j++){
				mas[i-1][j-1] = n;
			}
		}
	}
	for (int i = 0; i < 100; i++) {
		for (int j = 0; j < 100; j++) {
			cout << mas[i][j] << ' ';
		}
		cout << '\n';
	}
}