codeforces 151(完全)

最近变懒了,好久没写题解了。。

这场codeforces 是在实验室做的,当晚实验室竟然有8个人同时做codeforces,创下了我们学校集训队熬夜做codeforces的记录,12级的一两个同学上升势头很猛,赞一个。

说一下题目吧:

A:水题

B :水题

C : 比水题稍难

D: 阅读理解题吧,读懂了就秒掉了

E题:

写了一个比较挫的英文

problem E: we can also use BIT to solve this problem. first we should read all the


 queries and change every query (v,k) into (depth , left , right) :depth is the depth of


 the k sons of v,left and right are the indexes of vector W[d](it saves all the nodes with


 depth of d),then we can answer all the queries in the same depth together . So we


 transform the problem to another simple problem ,how many distinct values in an


 interval .it's easy to solve it just use BIT (off line ). 

我的代码 :http://codeforces.com/contest/246/submission/2632645

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值