#P6824. 「EZEC-4」可乐
「EZEC-4」可乐
Description
pigstd now has cases of cola. The -th case is labeled with a positive integer .
If pigstd's smartness value is a non-negative integer , then for the -th case of cola, if , pigstd can drink this case of cola.
Now pigstd tells you and the sequence . You may choose pigstd's smartness value so that the number of cola cases he can drink is maximized. Find this maximum value.
Input Format
The first line contains two integers and , separated by spaces.
The next lines each contain one integer , indicating the number labeled on the -th case of cola.
Output Format
Output one positive integer in a single line, indicating the maximum number of cola cases that pigstd can drink.
3 5
2
3
4
3
4 625
879
480
671
853
4
Hint
Hint
pigstd's smartness value can be .
Sample Explanation
Sample 1: It is easy to construct that when , he can drink all colas.
Sample 2: It is easy to construct , and he can drink all colas.
The sample explanation is not necessarily the only way.
Constraints
This problem uses bundled testdata.
-
Subtask 1 (29 points): .
-
Subtask 2 (1 points): .
-
Subtask 3 (70 points): No special restrictions.
For all data, it is guaranteed that .
denotes XOR. If you do not know what XOR is, please click here.
Translated by ChatGPT 5
京公网安备 11011102002149号