Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- class Eggcelent
- {
- static void Main()
- {
- int N = int.Parse(Console.ReadLine());
- int height = 2 * N;
- int width = 3 * N - 1;
- int innerDots = N + 1;
- Console.WriteLine("{0}{1}{0}", new string('.', innerDots), new string('*', N - 1));
- int middleDots = innerDots;
- innerDots -= 2;
- while (innerDots > 1)
- {
- Console.WriteLine("{0}{1}{2}{1}{0}", new string('.', innerDots), "*", new string('.', middleDots));
- innerDots -= 2;
- middleDots += 4;
- }
- for (int i = 0; i < N / 3; i++)
- {
- Console.WriteLine("{0}{1}{2}{1}{0}", ".", "*", new string('.', middleDots));
- }
- Console.WriteLine("{0}{1}{2}{3}{1}{0}", ".", "*", String.Concat(Enumerable.Repeat("@.", (width - 3) / 2)), "@");
- Console.WriteLine("{0}{1}{2}{3}{1}{0}", ".", "*", String.Concat(Enumerable.Repeat(".@", (width - 3) / 2)), ".");
- for (int i = 0; i < N / 3; i++)
- {
- Console.WriteLine("{0}{1}{2}{1}{0}", ".", "*", new string('.', middleDots));
- }
- innerDots += 2;
- middleDots -= 4;
- while (middleDots >= N + 1)
- {
- Console.WriteLine("{0}{1}{2}{1}{0}", new string('.', innerDots), "*", new string('.', middleDots));
- innerDots += 2;
- middleDots -= 4;
- }
- Console.WriteLine("{0}{1}{0}", new string('.', innerDots), new string('*', N - 1));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement