或(hard version)
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
Problem Description
给定大小为的数组,对于每个,输出有多少个,使得
其中代表按位或
Input Format
第一行输入一个整数,表示数组大小
第二行输入个整数
Output Format
输出行,第行表示对于满足要求的的个数
Sample
5
0 1 2 3 4
0
1
1
3
1
Hint
重庆邮电大学第十六届ACM程序设计大赛(网络赛)
- Status
- Done
- Rule
- XCPC
- Problem
- 11
- Start at
- 2023-9-23 0:00
- End at
- 2023-9-25 0:00
- Duration
- 48 hour(s)
- Host
- Partic.
- 2