Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- // Marguerita
- string r(string s, int n)
- {
- string answer;
- for (int i = 0; i < n; i++)
- {
- answer = answer + s;
- }
- return answer;
- }
- int main()
- {
- int n;
- cin >> n;
- int w = 8 * n + 2;
- cout << "'&$" << r("'", 8 * n - 1) << endl;
- for (int i = 2, j = 8 * n - 1; i <= n; i++, j--)
- {
- cout << r("'", i) << "\\" << r("'", j) << endl;
- }
- cout << r("^*", 4 * n) << "^'" << endl;
- for (int i = 0, j = w - n - 6; i <= n - 2; i++, j = j - 2)
- {
- cout << r("'", i) << "\\\\" << r(" ", n) << "\\" << r(" ", j) << "//" << r("'", i + 1) << endl;
- }
- cout << r("'", n - 1) << "\\" << r("~", w - 2 * n - 1) << "/" << r("'", n) << endl;
- int i = 0;
- int j = w - 2 * n - 3;
- for (; i < n - 2; i++, j = j - 2)
- {
- cout << r("'", i + n) << "\\" << r(" ", j) << "/" << r("'", i + n + 1) << endl;
- }
- cout << r("'", i + n) << "\\" << r("_", j) << "/" << r("'", i + n + 1) << endl;
- i++;
- j = j - 2;
- cout << r("'", i + n) << "\\" << r(".", j) << "/" << r("'", i + n + 1) << endl;
- i++;
- j = j - 2;
- for (; j >= 5; i++, j = j - 2)
- {
- cout << r("'", i + n) << "\\" << r(" ", j) << "/" << r("'", i + n + 1) << endl;
- }
- cout << r("'", (w - 5) / 2) << "\\___/" << r("'", (w - 5) / 2 + 1) << endl;
- for (int k = 0; k < 2 * n + 1; k++)
- {
- cout << r("'", (w - 3) / 2) << "|||" << r("'", (w - 3) / 2 + 1) << endl;
- }
- cout << r("_", w - 1) << "'" << endl;
- cout << "'" << r("-", w - 3) << "''" << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement