10960 - The Party, Part II
Posted: Sat Nov 12, 2005 7:48 pm
I've tried this problem, and got WA over and over. I have several questions as follow:
May I assume that in the input, the persons will always be represented as consecutive letters starting from 'A'?
May I assume that in the input, the items will always be represented as consecutive integers starting from 0?
May I assume that in the input, the colors will always be represented as consecutive integers starting from 0?
I have several input cases, and I really get confused about what should be the output. Could someone please tell me the output?
May I assume that in the input, the persons will always be represented as consecutive letters starting from 'A'?
May I assume that in the input, the items will always be represented as consecutive integers starting from 0?
May I assume that in the input, the colors will always be represented as consecutive integers starting from 0?
I have several input cases, and I really get confused about what should be the output. Could someone please tell me the output?
Thanks for any help21
4 2 3 6
Same colour of item 0 = A B D
Colour 2 for item 0 = B
Not colour 2 for item 1 = C
Not colour 1 for item 1 = C
Same colour of item 1 = C D
Same colour of item 1 = A D
4 2 3 7
Same colour of item 0 = A B D
Colour 2 for item 0 = B
Not colour 2 for item 1 = C
Not colour 1 for item 1 = C
Same colour of item 1 = C D
Same colour of item 1 = A D
Colour 1 for item 0 = D
4 1 1 1
Same colour of item 0 = G X Y Z
4 1 1 1
Same colour of item 0 = A B C D
1 1 2 1
Not colour 0 for item 0 = A
1 1 1 1
Not color 0 for item 0 = A
1 3 1 1
Same colour of item 0 = A
3 3 1 1
Same colour of item 0 = A B C
3 1 3 3
Not colour 2 for item 0 = R W
Not colour 1 for item 0 = E R
Same colour of item 0 = E W
3 1 3 3
Not colour 2 for item 0 = A B
Not colour 1 for item 0 = B C
Same colour of item 0 = A C
3 1 3 4
Not colour 2 for item 0 = R W
Not colour 1 for item 0 = E R
Same colour of item 0 = E W
Colour 0 for item 0 = E
3 1 3 4
Not colour 2 for item 0 = A B
Not colour 1 for item 0 = B C
Same colour of item 0 = A C
Colour 9 for item 0 = C
1 1 2 1
Not colour 0 for item 0 = A B
1 1 2 2
Not colour 0 for item 0 = A
Not colour 0 for item 1 = A
3 1 2 3
Colour 0 for item 0 = A
Colour 1 for item 0 = B
Colour 2 for item 0 = C
3 2 2 1
Colour 0 for item 0 = A
1 1 1 1
Colour 0 for item 2 = A
1 1 1 1
Not colour 1 for item 0 = A
1 1 1 2
Not colour 1 for item 0 = A
Not colour 2 for item 0 = A
1 1 2 1
Colour 0 for item 1 = A
1 1 10 9
Not colour 9 for item 0 = A
Not colour 8 for item 0 = A
Not colour 7 for item 0 = A
Not colour 5 for item 0 = A
Not colour 4 for item 0 = A
Not colour 3 for item 0 = A
Not colour 2 for item 0 = A
Not colour 1 for item 0 = A
Not colour 0 for item 0 = A
