fork(15) download
  1. using System;
  2.  
  3. class Test
  4. {
  5. public static void Main()
  6. {
  7. string tempString1;
  8. string tempString2;
  9. string tempString3;
  10. string result = "";
  11. int checker = 0;
  12. while ((tempString1 = Console.ReadLine()) != null)
  13. {
  14. char[] firstLine = tempString1.ToCharArray();
  15. int howMany = tempString1.Length;
  16. tempString2 = Console.ReadLine();
  17.  
  18. if (tempString2 == null)
  19. break;
  20.  
  21. char[] secondLine = tempString2.ToCharArray();
  22. int howMany2 = tempString2.Length;
  23. tempString3 = Console.ReadLine();
  24.  
  25. if (tempString3 == null)
  26. break;
  27.  
  28. char[] thirdLine = tempString3.ToCharArray();
  29. int howMany3 = tempString3.Length;
  30. int tempLenght = 0;
  31. int charAmount = 0;
  32.  
  33. while ((tempLenght <= howMany) && (tempLenght <= howMany2) && (tempLenght <= howMany3))
  34. {
  35. tempLenght += 4;
  36. if ((howMany > 3) && (howMany2 > 3) && (howMany3 > 3))
  37. charAmount++;
  38. }
  39. if (charAmount > 0)
  40. {
  41. for (int i = 0; i <= charAmount; ++i)
  42. {
  43. if (i == 0)
  44. checker = result.Length;
  45.  
  46. int notSoEasy = i * 3;
  47. if((firstLine.Length >= (2 + i * 3)) && (secondLine.Length >= (2 + i * 3)) && (thirdLine.Length >= (2 + i * 3)))
  48. {
  49. if (firstLine[1 + notSoEasy] == '_' && secondLine[0 + notSoEasy] == '|' && secondLine[1 + notSoEasy] == ' ' && secondLine[2 + notSoEasy] == '|' && thirdLine[0 + notSoEasy] == '|' && thirdLine[1 + notSoEasy] == '_' && thirdLine[2 + notSoEasy] == '|')
  50. result += 0;
  51. if (firstLine[1 + notSoEasy] == ' ' && secondLine[0 + notSoEasy] == ' ' && secondLine[1 + notSoEasy] == ' ' && secondLine[2 + notSoEasy] == '|' && thirdLine[0 + notSoEasy] == ' ' && thirdLine[1 + notSoEasy] == ' ' && thirdLine[2 + notSoEasy] == '|')
  52. result += 1;
  53. if (firstLine[1 + notSoEasy] == '_' && secondLine[0 + notSoEasy] == ' ' && secondLine[1 + notSoEasy] == '_' && secondLine[2 + notSoEasy] == '|' && thirdLine[0 + notSoEasy] == '|' && thirdLine[1 + notSoEasy] == '_' && thirdLine[2 + notSoEasy] == ' ')
  54. result += 2;
  55. if (firstLine[1 + notSoEasy] == '_' && secondLine[0 + notSoEasy] == ' ' && secondLine[1 + notSoEasy] == '_' && secondLine[2 + notSoEasy] == '|' && thirdLine[0 + notSoEasy] == ' ' && thirdLine[1 + notSoEasy] == '_' && thirdLine[2 + notSoEasy] == '|')
  56. result += 3;
  57. if (firstLine[1 + notSoEasy] == ' ' && secondLine[0 + notSoEasy] == '|' && secondLine[1 + notSoEasy] == '_' && secondLine[2 + notSoEasy] == '|' && thirdLine[0 + notSoEasy] == ' ' && thirdLine[1 + notSoEasy] == ' ' && thirdLine[2 + notSoEasy] == '|')
  58. result += 4;
  59. if (firstLine[1 + notSoEasy] == '_' && secondLine[0 + notSoEasy] == '|' && secondLine[1 + notSoEasy] == '_' && secondLine[2 + notSoEasy] == ' ' && thirdLine[0 + notSoEasy] == ' ' && thirdLine[1 + notSoEasy] == '_' && thirdLine[2 + notSoEasy] == '|')
  60. result += 5;
  61. if (firstLine[1 + notSoEasy] == '_' && secondLine[0 + notSoEasy] == '|' && secondLine[1 + notSoEasy] == '_' && secondLine[2 + notSoEasy] == ' ' && thirdLine[0 + notSoEasy] == '|' && thirdLine[1 + notSoEasy] == '_' && thirdLine[2 + notSoEasy] == '|')
  62. result += 6;
  63. if (firstLine[1 + notSoEasy] == '_' && secondLine[0 + notSoEasy] == ' ' && secondLine[1 + notSoEasy] == ' ' && secondLine[2 + notSoEasy] == '|' && thirdLine[0 + notSoEasy] == ' ' && thirdLine[1 + notSoEasy] == ' ' && thirdLine[2 + notSoEasy] == '|')
  64. result += 7;
  65. if (firstLine[1 + notSoEasy] == '_' && secondLine[0 + notSoEasy] == '|' && secondLine[1 + notSoEasy] == '_' && secondLine[2 + notSoEasy] == '|' && thirdLine[0 + notSoEasy] == '|' && thirdLine[1 + notSoEasy] == '_' && thirdLine[2 + notSoEasy] == '|')
  66. result += 8;
  67. if (firstLine[1 + notSoEasy] == '_' && secondLine[0 + notSoEasy] == '|' && secondLine[1 + notSoEasy] == '_' && secondLine[2 + notSoEasy] == '|' && thirdLine[0 + notSoEasy] == ' ' && thirdLine[1 + notSoEasy] == ' ' && thirdLine[2 + notSoEasy] == '|')
  68. result += 9;
  69. }
  70. }
  71. if(result.Length > checker)
  72. result += Environment.NewLine;
  73. }
  74. }
  75. Console.WriteLine(result);
  76. }
  77. }
  78.  
  79.  
Success #stdin #stdout 0.02s 15968KB
stdin
 _  _  _  _  _  _ 
 _| _| _|| ||_||_ 
|_  _||_ |_|  | _|
    _     _     _ 
  ||_ |_||_   || |
  ||_|  ||_|  ||_|
 _  _  _  _     _ 
  ||_||_||_   ||_|
  |  |  | _|  ||_|

stdout
232095
164610
799518