import Data.List
[([1,2,3],[5,6,7]),
([1,1,1],[1,1,2]),
([1,1,2],[2,2,1]),
([9,8,9],[8,6,4]),
([9,7,2],[2,2,9])]
solve
(a
, b
) = 1 == length (a \\ b
)
aW1wb3J0IERhdGEuTGlzdAoKbWFpbiA9IHByaW50ICQgbWFwIHNvbHZlCglbKFsxLDIsM10sWzUsNiw3XSksCgkoWzEsMSwxXSxbMSwxLDJdKSwKCShbMSwxLDJdLFsyLDIsMV0pLAoJKFs5LDgsOV0sWzgsNiw0XSksCgkoWzksNywyXSxbMiwyLDldKV0KCnNvbHZlIChhLCBiKSA9IDEgPT0gbGVuZ3RoIChhIFxcIGIpCg==