Advertisement
Sim0o0na

5. Sword

Mar 12th, 2018
648
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace sword
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. int n = int.Parse(Console.ReadLine());
  14.  
  15. Console.WriteLine("{0}/^\\{0}",new string('#',n-1));
  16.  
  17. int b = n - 2;
  18. int c = 3;
  19. for (int i = 0; i < n/2; i++)
  20. {
  21. Console.WriteLine("{0}.{1}.{0}",new string('#',b),new string(' ',c));
  22. b--;
  23. c += 2;
  24. }
  25. int d = (c - 3) / 2;
  26. Console.WriteLine("{0}|{1}S{1}|{0}",new string('#',(n-1)/2),new string(' ',d));
  27. Console.WriteLine("{0}|{1}O{1}|{0}", new string('#', (n - 1) / 2), new string(' ', d));
  28. Console.WriteLine("{0}|{1}F{1}|{0}", new string('#', (n - 1) / 2), new string(' ', d));
  29. Console.WriteLine("{0}|{1}T{1}|{0}", new string('#', (n - 1) / 2), new string(' ', d));
  30. for (int i = 0; i <n-4 ; i++)
  31. {
  32. Console.WriteLine("{0}|{1}|{0}", new string('#', (n - 1) / 2), new string(' ', d * 2 + 1));
  33. }
  34. if (n==4)
  35. {
  36. Console.WriteLine("{0}|{1}|{0}", new string('#', (n - 1) / 2), new string(' ', d * 2 + 1));
  37. }
  38. Console.WriteLine("{0}|{1}U{1}|{0}", new string('#', (n - 1) / 2), new string(' ', d));
  39. Console.WriteLine("{0}|{1}N{1}|{0}", new string('#', (n - 1) / 2), new string(' ', d));
  40. Console.WriteLine("{0}|{1}I{1}|{0}", new string('#', (n - 1) / 2), new string(' ', d));
  41. Console.WriteLine("@{0}@",new string('=',2*n-1));
  42. var spaces = 2*n + 1 - (((n + 3) / 2) * 2 + 2);
  43. for (int i = 0; i < n/2; i++)
  44. {
  45. Console.WriteLine("{0}|{1}|{0}",new string('#',(n+3)/2),new string(' ',spaces));
  46. }
  47. Console.WriteLine("{0}\\{1}/{0}", new string('#',(n+3)/2),new string('.', spaces));
  48. }
  49. }
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement