Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Fit_Box_in_Box
- {
- class Program
- {
- public static void Main(string[] args)
- {
- int w1 = int.Parse(Console.ReadLine());
- int h1 = int.Parse(Console.ReadLine());
- int d1 = int.Parse(Console.ReadLine());
- int w2 = int.Parse(Console.ReadLine());
- int h2 = int.Parse(Console.ReadLine());
- int d2 = int.Parse(Console.ReadLine());
- int a = 0;
- int s = 0;
- int d = 0;
- int q = 0;
- int w = 0;
- int e = 0;
- if (w1 < w2 && h1 < h2 && d1 < d2)
- {
- a = w1;
- s = h1;
- d = d1;
- q = w2;
- w = h2;
- e = d2;
- }
- else
- {
- a = w2;
- s = h2;
- d = d2;
- q = w1;
- w = h1;
- e = d1;
- }
- if(a < q && s < w && d < e)
- {
- Console.WriteLine("({0}, {1}, {2}) < ({3}, {4}, {5})", a, s, d, q, w, e);
- }
- if(a < q && s < e && d < w)
- {
- Console.WriteLine("({0}, {1}, {2}) < ({3}, {4}, {5})",a,s,d,q,e,w);
- }
- if(a < w && s < e && d < q)
- {
- Console.WriteLine("({0}, {1}, {2}) < ({3}, {4}, {5})",a,s,d,w,e,q);
- }
- if(a < w && s < q && d < e)
- {
- Console.WriteLine("({0}, {1}, {2}) < ({3}, {4}, {5})",a,s,d,w,q,e);
- }
- if(a < e && s < q && d < w)
- {
- Console.WriteLine("({0}, {1}, {2}) < ({3}, {4}, {5})",a,s,d,e,q,w);
- }
- if(a < e && s < w && d < q)
- {
- Console.WriteLine("({0}, {1}, {2}) < ({3}, {4}, {5})",a,s,d,e,w,q);
- }
- if(q < a && w < s && e < d)
- {
- Console.WriteLine("({0}, {1}, {2}) < ({3}, {4}, {5})",q,w,e,a,s,d);
- }
- if(q < a && w < d && e < s)
- {
- Console.WriteLine("({0}, {1}, {2}) < ({3}, {4}, {5})",q,w,e,a,d,s);
- }
- if(q < s && w < d && e < a)
- {
- Console.WriteLine("({0}, {1}, {2}) < ({3}, {4}, {5})",q,w,e,s,d,a);
- }
- if(q < s && w < a && e < d)
- {
- Console.WriteLine("({0}, {1}, {2}) < ({3}, {4}, {5})",q,w,e,s,a,d);
- }
- if(q < d && w < s && e < a)
- {
- Console.WriteLine("({0}, {1}, {2}) < ({3}, {4}, {5})",q,w,e,d,s,a);
- }
- if(q < d && w < a && e < s)
- {
- Console.WriteLine("({0}, {1}, {2}) < ({3}, {4}, {5})",q,w,e,d,a,s);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement