Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<cmath>
- using namespace std;
- int main() {
- int a, b, c, d, e, f;
- cin >> d >> e >> f >> a >> b >> c;
- cout << ((d >= a && e >= b && f >= c) || (d >= a && e >= c && f >= b)
- || (d >= b && e >= a && f >= c) || (d >= b && e >= c && f >= a)
- || (d >= c && e >= a && f >= b) || (d >= c && e >= b && f >= a) ?
- (d == a && e == b && f == c) || (d == a && e == c && f == b)
- || (d == b && e == a && f == c) || (d == b && e == c && f == a)
- || (d == c && e == a && f == b) || (d == c && e == b && f == a) ?
- "Boxes are equal" : "The first box is larger than the second one"
- : (d < a && e < b && f < c) || (d < a && e < c && f < b)
- || (d < b && e < a && f < c) || (d < b && e < c && f < a)
- || (d < c && e < a && f < b) || (d < c && e < b && f < a) ?
- "The first box is smaller than the second one" : "Boxes are incomparable");
- }
Advertisement
Add Comment
Please, Sign In to add comment