#include <iostream> using namespace std; int main() { int m, n, k; //m-строки, n - столбцы cin >> m >> n >> k; for (int i = 0; i < m; i++){ for (int j = 0; j < n; j++){ if (i%6 == 0) cout << '+'; else if (j%(k+1) == 0) cout << '+'; else cout << '.'; } cout << endl; } return 0; }
126 101 49
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+ +.................................................+.................................................+