Vampires

最近一直在看些吸血鬼的电影和电剧,全是吸血鬼与人类的爱情故事,并不是有多迷恋吸血鬼,只是感觉闲着很无聊,全看一个题材至少还能了解在一个题材上不同的人不同的观点,以及不同的表现手法。

首先开始的暮光,很喜欢,唯美的爱情。非常喜欢电影的画面,都很美。无论从画面或是情节都必须说暮光很成功,前三面的电影中没有出现美国电影偶像剧的一贯SEX风格,在很多对爱情憧憬的女孩心中树立了良好的印象,所有的一切都把整部电影做的非常美。

之后看了美剧《吸血鬼日记》、比较古老的电影《夜访吸血鬼》、美剧《血色月光》、动漫《吸血鬼骑士》。感觉上两部电视剧都有些不太满意的地方。Vampires Diaries觉得女主角开始时不是想Bella那样有特点,尤其是刚刚知道Stefen是吸血鬼时害怕了,不太喜欢导演处理的这个情节,不过很喜欢Demon这个人物的处理,开始时候非常讨厌Demon,但是越来越吸观众的眼球;Moon Lignt感觉上是一部单纯的写男主角的英雄形象,感觉最差;电影《夜访吸血鬼》据说是吸血鬼题材的影片的一个里程碑,不知道是不是因为这部电影吸血鬼第一次在荧幕上让观众喜欢了,这个有空再看一篇吧;之前还看过一部《惊情四百年》也是个悲伤的爱情故事。动漫《吸血鬼骑士》又有了不同的元素,有纯种吸血鬼,吸血鬼元老院,吸血鬼猎人,普通人,四种人物之间的感情纠葛。动漫的场景也很唯美,情节也和其他不同,写了吸血鬼内部的斗争,并且早就了最厉害的吸血鬼猎人,情节很让人期待。

想想考完试竟然看了这么都得电视剧还真有点抱歉……

Jonathan is fighting against DIO's Vampire minions. There are n of them with strengths a1,a2,…,an. Denote (l,r) as the group consisting of the vampires with indices from l to r. Jonathan realizes that the strength of any such group is in its weakest link, that is, the bitwise AND. More formally, the strength level of the group (l,r) is defined as f(l,r)=al&al+1&al+2&…&ar. Here, & denotes the bitwise AND operation. Because Jonathan would like to defeat the vampire minions fast, he will divide the vampires into contiguous groups, such that each vampire is in exactly one group, and the sum of strengths of the groups is minimized. Among all ways to divide the vampires, he would like to find the way with the maximum number of groups. Given the strengths of each of the n vampires, find the maximum number of groups among all possible ways to divide the vampires with the smallest sum of strengths. Input The first line contains a single integer t (1≤t≤104) — the number of test cases. The description of test cases follows. The first line of each test case contains a single integer n (1≤n≤2⋅105) — the number of vampires. The second line of each test case contains n integers a1,a2,…,an (0≤ai≤109) — the individual strength of each vampire. The sum of n over all test cases does not exceed 2⋅105. Output For each test case, output a single integer — the maximum number of groups among all possible ways to divide the vampires with the smallest sum of strengths.c++实现
07-07
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值