CodeForces - 243A——The Brand New Function (令人烦躁的思维题)
Polycarpushasasequence,consistingofnnon-negativeintegers:a1, a2, ..., an.Let'sdefinefunctionf(l, r)(l, rareinteger,1 ≤ l ≤ r ≤ n)forsequenceaasanoperationofbitwiseORofallthesequenceelementswithindexes