#P4310. 绝世好题
绝世好题
Description
Given a sequence of length , find the maximum length of a subsequence of such that , where , and denotes the bitwise AND operation.
Input Format
The input contains 2 lines. The first line contains an integer . The second line contains integers, where the -th integer is .
Output Format
Output one line containing a single integer, the maximum length of the subsequence .
3
1 2 3
2
Hint
For of the testdata, , .
Translated by ChatGPT 5
京公网安备 11011102002149号