Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // It is just for 40 points , because works for input from 1 to 12 only, hard writing :)
- using System;
- class GoikoTower
- {
- static void Main()
- {
- int input = int.Parse(Console.ReadLine());
- char dot = '.';
- char dashRight = '/';
- char dashLeft = '\\';
- char dashMid = '-';
- if (input < 2 && input > 0) //if is 1
- {
- DrawFirst(dot, dashRight, dashLeft, input);
- }
- else if (input < 3 && input > 1) //if is 2
- {
- DrawFirst(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawSecond(dot, dashRight, dashLeft, dashMid, input);
- }
- else if (input < 4 && input > 2) //if is 3
- {
- DrawFirst(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawSecond(dot, dashRight, dashLeft, dashMid, input);
- Console.WriteLine();
- DrawThird(dot, dashRight, dashLeft, input);
- }
- else if (input < 5 && input > 3) // if is 4
- {
- DrawFirst(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawSecond(dot, dashRight, dashLeft, dashMid, input);
- Console.WriteLine();
- DrawThird(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawFourth(dot, dashRight, dashLeft, dashMid, input);
- }
- else if (input < 6 && input > 4) //if is 5
- {
- DrawFirst(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawSecond(dot, dashRight, dashLeft, dashMid, input);
- Console.WriteLine();
- DrawThird(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawFourth(dot, dashRight, dashLeft, dashMid, input);
- Console.WriteLine();
- DrawFifth(dot, dashRight, dashLeft, input);
- }
- else if (input < 7 && input > 5) //if is 6
- {
- DrawFirst(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawSecond(dot, dashRight, dashLeft, dashMid, input);
- Console.WriteLine();
- DrawThird(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawFourth(dot, dashRight, dashLeft, dashMid, input);
- Console.WriteLine();
- DrawFifth(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawSixth(dot, dashRight, dashLeft, input);
- }
- else if (input < 8 && input > 6) //if is 7
- {
- DrawFirst(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawSecond(dot, dashRight, dashLeft, dashMid, input);
- Console.WriteLine();
- DrawThird(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawFourth(dot, dashRight, dashLeft, dashMid, input);
- Console.WriteLine();
- DrawFifth(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawSixth(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawSeventh(dot, dashRight, dashLeft, dashMid, input);
- }
- else if (input < 9 && input > 7) // if is 8
- {
- DrawFirst(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawSecond(dot, dashRight, dashLeft, dashMid, input);
- Console.WriteLine();
- DrawThird(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawFourth(dot, dashRight, dashLeft, dashMid, input);
- Console.WriteLine();
- DrawFifth(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawSixth(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawSeventh(dot, dashRight, dashLeft, dashMid, input);
- Console.WriteLine();
- DrawEight(dot, dashRight, dashLeft, input);
- }
- else if (input < 10 && input > 8) //if is 9
- {
- DrawFirst(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawSecond(dot, dashRight, dashLeft, dashMid, input);
- Console.WriteLine();
- DrawThird(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawFourth(dot, dashRight, dashLeft, dashMid, input);
- Console.WriteLine();
- DrawFifth(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawSixth(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawSeventh(dot, dashRight, dashLeft, dashMid, input);
- Console.WriteLine();
- DrawEight(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawNine(dot, dashRight, dashLeft, input);
- }
- else if (input < 11 && input > 9) //if is 10
- {
- DrawFirst(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawSecond(dot, dashRight, dashLeft, dashMid, input);
- Console.WriteLine();
- DrawThird(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawFourth(dot, dashRight, dashLeft, dashMid, input);
- Console.WriteLine();
- DrawFifth(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawSixth(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawSeventh(dot, dashRight, dashLeft, dashMid, input);
- Console.WriteLine();
- DrawEight(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawNine(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawTen(dot, dashRight, dashLeft, input);
- }
- else if (input < 12 && input > 10) //if is 11
- {
- DrawFirst(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawSecond(dot, dashRight, dashLeft, dashMid, input);
- Console.WriteLine();
- DrawThird(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawFourth(dot, dashRight, dashLeft, dashMid, input);
- Console.WriteLine();
- DrawFifth(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawSixth(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawSeventh(dot, dashRight, dashLeft, dashMid, input);
- Console.WriteLine();
- DrawEight(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawNine(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawTen(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawEleventh(dot, dashRight, dashLeft, dashMid, input);
- }
- else if (input < 13 && input > 11) //if is 12
- {
- DrawFirst(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawSecond(dot, dashRight, dashLeft, dashMid, input);
- Console.WriteLine();
- DrawThird(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawFourth(dot, dashRight, dashLeft, dashMid, input);
- Console.WriteLine();
- DrawFifth(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawSixth(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawSeventh(dot, dashRight, dashLeft, dashMid, input);
- Console.WriteLine();
- DrawEight(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawNine(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawTen(dot, dashRight, dashLeft, input);
- Console.WriteLine();
- DrawEleventh(dot, dashRight, dashLeft, dashMid, input);
- Console.WriteLine();
- DrawTwelveth(dot, dashRight, dashLeft, input);
- }
- }
- private static void DrawTwelveth(char dot, char dashRight, char dashLeft, int input)
- {
- for (int i = 1; i < input - 11; i++)
- {
- Console.Write(dot);
- }
- Console.Write(dashRight);
- for (int k = 0; k < 22; k++)
- {
- Console.Write(dot);
- }
- Console.Write(dashLeft);
- for (int i = 1; i < input - 11; i++)
- {
- Console.Write(dot);
- }
- }
- private static void DrawEleventh(char dot, char dashRight, char dashLeft, char dashMid, int input)
- {
- for (int i = 1; i < input - 10; i++)
- {
- Console.Write(dot);
- }
- Console.Write(dashRight);
- for (int k = 0; k < 20; k++)
- {
- Console.Write(dashMid);
- }
- Console.Write(dashLeft);
- for (int i = 1; i < input - 10; i++)
- {
- Console.Write(dot);
- }
- }
- private static void DrawTen(char dot, char dashRight, char dashLeft, int input)
- {
- for (int i = 1; i < input - 9; i++)
- {
- Console.Write(dot);
- }
- Console.Write(dashRight);
- for (int k = 0; k < 18; k++)
- {
- Console.Write(dot);
- }
- Console.Write(dashLeft);
- for (int i = 1; i < input - 9; i++)
- {
- Console.Write(dot);
- }
- }
- private static void DrawNine(char dot, char dashRight, char dashLeft, int input)
- {
- for (int i = 1; i < input - 8; i++)
- {
- Console.Write(dot);
- }
- Console.Write(dashRight);
- for (int k = 0; k < 16; k++)
- {
- Console.Write(dot);
- }
- Console.Write(dashLeft);
- for (int i = 1; i < input - 8; i++)
- {
- Console.Write(dot);
- }
- }
- private static void DrawEight(char dot, char dashRight, char dashLeft, int input)
- {
- for (int i = 1; i < input - 7; i++)
- {
- Console.Write(dot);
- }
- Console.Write(dashRight);
- for (int k = 0; k < 14; k++)
- {
- Console.Write(dot);
- }
- Console.Write(dashLeft);
- for (int i = 1; i < input - 7; i++)
- {
- Console.Write(dot);
- }
- }
- private static void DrawSeventh(char dot, char dashRight, char dashLeft, char dashMid, int input)
- {
- for (int i = 1; i < input - 6; i++)
- {
- Console.Write(dot);
- }
- Console.Write(dashRight);
- for (int k = 0; k < 12; k++)
- {
- Console.Write(dashMid);
- }
- Console.Write(dashLeft);
- for (int i = 1; i < input - 6; i++)
- {
- Console.Write(dot);
- }
- }
- private static void DrawSixth(char dot, char dashRight, char dashLeft, int input)
- {
- for (int i = 1; i < input - 5; i++)
- {
- Console.Write(dot);
- }
- Console.Write(dashRight);
- for (int k = 0; k < 10; k++)
- {
- Console.Write(dot);
- }
- Console.Write(dashLeft);
- for (int i = 1; i < input - 5; i++)
- {
- Console.Write(dot);
- }
- }
- private static void DrawFifth(char dot, char dashRight, char dashLeft, int input)
- {
- for (int i = 1; i < input - 4; i++)
- {
- Console.Write(dot);
- }
- Console.Write(dashRight);
- for (int k = 0; k < 8; k++)
- {
- Console.Write(dot);
- }
- Console.Write(dashLeft);
- for (int i = 1; i < input - 4; i++)
- {
- Console.Write(dot);
- }
- }
- private static void DrawFourth(char dot, char dashRight, char dashLeft, char dashMid, int input)
- {
- for (int i = 1; i < input - 3; i++)
- {
- Console.Write(dot);
- }
- Console.Write(dashRight);
- for (int k = 0; k < 6; k++)
- {
- Console.Write(dashMid);
- }
- Console.Write(dashLeft);
- for (int i = 1; i < input - 3; i++)
- {
- Console.Write(dot);
- }
- }
- private static void DrawThird(char dot, char dashRight, char dashLeft, int input)
- {
- for (int i = 1; i < input - 2; i++)
- {
- Console.Write(dot);
- }
- Console.Write(dashRight);
- for (int k = 0; k < 4; k++)
- {
- Console.Write(dot);
- }
- Console.Write(dashLeft);
- for (int i = 1; i < input - 2; i++)
- {
- Console.Write(dot);
- }
- }
- private static void DrawSecond(char dot, char dashRight, char dashLeft, char dashMid, int input)
- {
- for (int i = 1; i < input - 1; i++)
- {
- Console.Write(dot);
- }
- Console.Write(dashRight);
- for (int k = 0; k < 2; k++)
- {
- Console.Write(dashMid);
- }
- Console.Write(dashLeft);
- for (int i = 1; i < input - 1; i++)
- {
- Console.Write(dot);
- }
- }
- private static void DrawFirst(char dot, char dashRight, char dashLeft, int input)
- {
- for (int i = 1; i < input; i++)
- {
- Console.Write(dot);
- }
- for (int k = 1; k < 2; k++)
- {
- Console.Write(dashRight);
- Console.Write(dashLeft);
- }
- for (int j = 1; j < input; j++)
- {
- Console.Write(dot);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement