fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. byte a = Convert.ToByte(Console.Read());
  8. byte b = Convert.ToByte(Console.ReadLine());
  9. byte c = Convert.ToByte(Console.Read());
  10. byte d = Convert.ToByte(Console.ReadLine());
  11. if ((Math.Abs(a-c)==1 && Math.Abs(b-d)==2) || (Math.Abs(b-d)==1 && Math.Abs(a-c)==2))
  12. {
  13. Console.WriteLine("Бьёт");
  14. }
  15. else
  16. {
  17. Console.WriteLine("Не бьёт");
  18. }
  19. }
  20. }
Success #stdin #stdout 0.01s 131520KB
stdin
4 5
2 6
stdout
Бьёт