Advertisement
fbinnzhivko

01.00 Fit Box Box.cs

Apr 15th, 2016
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.31 KB | None | 0 0
  1. using System;
  2. class Program
  3. {
  4.     static void Main()
  5.     {
  6.         int w1 = int.Parse(Console.ReadLine());
  7.         int h1 = int.Parse(Console.ReadLine());
  8.         int d1 = int.Parse(Console.ReadLine());
  9.  
  10.         int w2 = int.Parse(Console.ReadLine());
  11.         int h2 = int.Parse(Console.ReadLine());
  12.         int d2 = int.Parse(Console.ReadLine());
  13.  
  14.         if (w1 < w2 && h1 < h2 && d1 < d2)
  15.         {
  16.             Console.WriteLine("({0}, {1}, {2}) < ({3}, {4}, {5})", w1, h1, d1, w2, h2, d2);
  17.         }
  18.  
  19.         if (w1 < w2 && h1 < d2 && d1 < h2)
  20.         {
  21.             Console.WriteLine("({0}, {1}, {2}) < ({3}, {4}, {5})", w1, h1, d1, w2, d2, h2);
  22.         }
  23.  
  24.         if (w1 < h2 && h1 < w2 && d1 < d2)
  25.         {
  26.             Console.WriteLine("({0}, {1}, {2}) < ({3}, {4}, {5})", w1, h1, d1, h2, w2, d2);
  27.         }
  28.  
  29.         if (w1 < h2 && h1 < d2 && d1 < w2)
  30.         {
  31.             Console.WriteLine("({0}, {1}, {2}) < ({3}, {4}, {5})", w1, h1, d1, h2, d2, w2);
  32.         }
  33.         if (w1 < d2 && h1 < w2 && d1 < h2)
  34.         {
  35.             Console.WriteLine("({0}, {1}, {2}) < ({3}, {4}, {5})", w1, h1, d1, d2, w2, h2);
  36.         }
  37.         if (w1 < d2 && h1 < h2 && d1 < w2)
  38.         {
  39.             Console.WriteLine("({0}, {1}, {2}) < ({3}, {4}, {5})", w1, h1, d1, d2, h2, w2);
  40.         }
  41.         /////////////////////////////////////////////////////////////////
  42.         if (w2 < w1 && h2 < h1 && d2 < d1)
  43.         {
  44.             Console.WriteLine("({0}, {1}, {2}) < ({3}, {4}, {5})", w2, h2, d2, w1, h1, d1);
  45.         }
  46.         if (w2 < w1 && h2 < d1 && d2 < h1)
  47.         {
  48.             Console.WriteLine("({0}, {1}, {2}) < ({3}, {4}, {5})", w2, h2, d2, w1, d1, h1);
  49.         }
  50.         if (w2 < h1 && h2 < w1 && d2 < d1)
  51.         {
  52.             Console.WriteLine("({0}, {1}, {2}) < ({3}, {4}, {5})", w2, h2, d2, h1, w1, d1);
  53.         }
  54.         if (w2 < h1 && h2 < d1 && d2 < w1)
  55.         {
  56.             Console.WriteLine("({0}, {1}, {2}) < ({3}, {4}, {5})", w2, h2, d2, h1, d1, w1);
  57.         }
  58.         if (w2 < d1 && h2 < w1 && d2 < h1)
  59.         {
  60.             Console.WriteLine("({0}, {1}, {2}) < ({3}, {4}, {5})", w2, h2, d2, d1, w1, h1);
  61.         }
  62.         if (w2 < d1 && h2 < h1 && d2 < w1)
  63.         {
  64.             Console.WriteLine("({0}, {1}, {2}) < ({3}, {4}, {5})", w2, h2, d2, d1, h1, w1);
  65.         }
  66.     }
  67. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement