POJ 1733(边带权并查集+离散化)
Parity game Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 15492 Accepted: 5876 Description Now and then you play the following game with your friend. Your friend writes down a sequence consisting of zeroes and ones. You choose a continuous subsequence (for example the subsequence from the third to the fifth digit inclusively) and ask him, whether this subsequence contains even or odd number of ones. Your friend answers your question and you can ask him about another subsequence and so on. Your task is to guess the entire sequence of numbers. You suspect some of your friend's