Advertisement
Guest User

FitBoxInBox - no method

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