Submission

Status:

PPPPPPPPPPPPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: APNICHANAN

Problemset: Femboy

Language: cpp

Time: 0.027 second

Submitted On: 2025-10-07 20:01:57

#include <iostream>
using namespace std;
int main()
{
    double n;
    cin >> n;
    for (double i = 0; i < n * 5; i++)
    {
        if (i <= (double)((0.2) * (n * 5) - n))
        {
            for (int k = 0; k < n; k++)
            {
                // F
                for (int j = 0; j < n * 5; j++)
                {
                    cout << "#";
                }
                cout << " ";
                // E
                for (int j = 0; j < n * 5; j++)
                {
                    cout << "#";
                }
                cout << " ";
                // M
                for (int i = 0; i < n; i++)
                {
                    cout << "#";
                }
                for (int i = n; i < (n * 5) - n; i++)
                {
                    cout << " ";
                }
                for (int i = 0; i < n; i++)
                {
                    cout << "#";
                }
                cout << " ";
                // B
                for (int j = 0; j < n * 4; j++)
                {
                    cout << "#";
                }
                for (int j = 0; j < n; j++)
                {
                    cout << " ";
                }
                cout << " ";
                // O
                for (int j = 0; j < n * 5; j++)
                {
                    cout << "#";
                }
                cout << " ";
                // Y
                for (int i = 0; i < n; i++)
                {
                    cout << "#";
                }
                for (int i = n; i < (n * 5) - n; i++)
                {
                    cout << " ";
                }
                for (int i = 0; i < n; i++)
                {
                    cout << "#";
                }
                cout << endl;
            }
        }
        else if (i <= (double)((0.4) * (n * 5) - n))
        {
            for (int k = 0; k < 1; k++)
            {
                // F
                for (int j = 0; j < n; j++)
                {
                    cout << "#";
                }
                for (int j = 0; j < 4 * n; j++)
                {
                    cout << " ";
                }
                cout << " ";
                // E
                for (int j = 0; j < n; j++)
                {
                    cout << "#";
                }
                for (int j = 0; j < 4 * n; j++)
                {
                    cout << " ";
                }
                cout << " ";
                // M
                for (int j = 0; j < n; j++)
                {
                    cout << "##";
                }
                for (int j = 0; j < n; j++)
                {
                    cout << " ";
                }
                for (int j = 0; j < n; j++)
                {
                    cout << "##";
                }
                cout << " ";
                // B
                for (int j = 0; j < n; j++)
                {
                    cout << "#";
                }
                for (int j = 0; j < 3 * n; j++)
                {
                    cout << " ";
                }
                for (int j = 0; j < n; j++)
                {
                    cout << "#";
                }
                cout << " ";
                // O
                for (int j = 0; j < n; j++)
                {
                    cout << "#";
                }
                for (int j = 0; j < 3 * n; j++)
                {
                    cout << " ";
                }
                for (int j = 0; j < n; j++)
                {
                    cout << "#";
                }
                cout << " ";
                // Y
                for (int j = 0; j < n; j++)
                {
                    cout << " ";
                }
                for (int j = 0; j < n; j++)
                {
                    cout << "#";
                }
                for (int j = 0; j < n; j++)
                {
                    cout << " ";
                }
                for (int j = 0; j < n; j++)
                {
                    cout << "#";
                }
                for (int j = 0; j < n; j++)
                {
                    cout << " ";
                }
                cout << " ";
                cout << endl;
            }
        }
        else if (i <= (double)((0.6) * (n * 5) - n))
        {
            for (int k = 0; k < 1; k++)
            {
                // F
                for (int j = 0; j < n * 5; j++)
                {
                    cout << "#";
                }
                cout << " ";
                // E
                for (int j = 0; j < n * 5; j++)
                {
                    cout << "#";
                }
                cout << " ";
                // M
                for (int j = 0; j < n; j++)
                {
                    cout << "#";
                }
                for (int j = 0; j < n; j++)
                {
                    cout << " ";
                }
                for (int j = 0; j < n; j++)
                {
                    cout << "#";
                }
                for (int j = 0; j < n; j++)
                {
                    cout << " ";
                }
                for (int j = 0; j < n; j++)
                {
                    cout << "#";
                }
                cout << " ";
                // B
                for (int j = 0; j < n * 4; j++)
                {
                    cout << "#";
                }
                for (int j = 0; j < n; j++)
                {
                    cout << " ";
                }
                cout << " ";
                // O
                for (int j = 0; j < n; j++)
                {
                    cout << "#";
                }
                for (int j = 0; j < 3 * n; j++)
                {
                    cout << " ";
                }
                for (int j = 0; j < n; j++)
                {
                    cout << "#";
                }
                cout << " ";
                // Y
                for (int i = 0; i < 2 * n; i++)
                {
                    cout << " ";
                }
                for (int i = 0; i < n; i++)
                {
                    cout << "#";
                }
                for (int i = 0; i < 2 * n; i++)
                {
                    cout << " ";
                }
                cout << endl;
            }
        }
        else if (i <= (double)((0.8) * (n * 5) - n))
        {
            for (int k = 0; k < 1; k++)
            {
                // F
                for (int j = 0; j < n; j++)
                {
                    cout << "#";
                }
                for (int j = 0; j < 4 * n; j++)
                {
                    cout << " ";
                }
                cout << " ";
                // E
                for (int j = 0; j < n; j++)
                {
                    cout << "#";
                }
                for (int j = 0; j < 4 * n; j++)
                {
                    cout << " ";
                }
                cout << " ";
                // M
                for (int j = 0; j < n; j++)
                {
                    cout << "#";
                }
                for (int j = 0; j < 3 * n; j++)
                {
                    cout << " ";
                }
                for (int j = 0; j < n; j++)
                {
                    cout << "#";
                }
                cout << " ";
                // B
                for (int j = 0; j < n; j++)
                {
                    cout << "#";
                }
                for (int j = 0; j < 3 * n; j++)
                {
                    cout << " ";
                }
                for (int j = 0; j < n; j++)
                {
                    cout << "#";
                }
                cout << " ";
                // O
                for (int j = 0; j < n; j++)
                {
                    cout << "#";
                }
                for (int j = 0; j < 3 * n; j++)
                {
                    cout << " ";
                }
                for (int j = 0; j < n; j++)
                {
                    cout << "#";
                }
                cout << " ";
                // Y
                for (int i = 0; i < 2 * n; i++)
                {
                    cout << " ";
                }
                for (int i = 0; i < n; i++)
                {
                    cout << "#";
                }
                for (int i = 0; i < 2 * n; i++)
                {
                    cout << " ";
                }
                cout << " ";
                cout << endl;
            }
        }
        else if (i <= (double)((1) * (n * 5) - n))
        {
            for (int k = 0; k < 1; k++)
            {
                // F
                for (int j = 0; j < n; j++)
                {
                    cout << "#";
                }
                for (int j = 0; j < 4 * n; j++)
                {
                    cout << " ";
                }
                cout << " ";
                // E
                for (int j = 0; j < n * 5; j++)
                {
                    cout << "#";
                }
                cout << " ";
                // M
                for (int j = 0; j < n; j++)
                {
                    cout << "#";
                }
                for (int j = 0; j < 3 * n; j++)
                {
                    cout << " ";
                }
                for (int j = 0; j < n; j++)
                {
                    cout << "#";
                }
                cout << " ";
                // B
                for (int j = 0; j < 4 * n; j++)
                {
                    cout << "#";
                }
                for (int j = 0; j < n; j++)
                {
                    cout << " ";
                }
                cout << " ";
                // O
                for (int j = 0; j < 5 * n; j++)
                {
                    cout << "#";
                }
                cout << " ";
                // Y
                for (int i = 0; i < 2 * n; i++)
                {
                    cout << " ";
                }
                for (int i = 0; i < n; i++)
                {
                    cout << "#";
                }
                for (int i = 0; i < 2 * n; i++)
                {
                    cout << " ";
                }
                cout << " ";
                cout << endl;
            }
        }
    }
}