Untitled

mail@pastecode.io avatar
unknown
c_cpp
a year ago
573 B
1
Indexable
#include <iostream>
#include <string>
#include <cmath>
using namespace std;

//решил
int main() {

	int a;
	int b;

	cin >> b;
	cin >> a;

	//ради экономии времени
	if (a == 1 and b == 1) {

		cout << '#';

	}


	else {

		for (int i = 0; i < a; i++) {

			cout << "#";
		}
		cout << '\n';

		for (int t = 0; t < b - 2; t++) {
			cout << '#';

			for (int g = 0; g < a - 2; g++) {
				cout << ".";



			}
			cout << '#' << '\n';


		}
		for (int u = 0; u < a; u++) {

			cout << "#";

		}


	}
}