Question: [Problem G]
Should the empty set be considered?
Should the numbers of the same value in the set considered to be inherently different?
Judge answer:
The empty set must not be considered. You must compute the number of non-empty subsets Y of X with those properties.
The numbers in the set may have same values, but must be considered different.
So the answer for the following input is 2:
2 1
1 1
0 0