![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前缀和
xiaonanxinyi
一点一滴
展开
-
codeforces D. Frets On Fire
题目链接:http://codeforces.com/contest/1119/problem/D 题意: 还是得要认真读题啊,比赛时看这题目,做的心情都没有,后来认真仔细的读一下,还是挺好理解的。就是每个音符长都是1e18+1,给你n个音符的开头,比如一个音符的开头是3,那么它就是3,4,5,6.。。。。。。 然后给你q个问题,每次询问区间L,R中有多少个不同的音...原创 2019-04-07 10:02:35 · 460 阅读 · 2 评论 -
codeforces Ehab and the Expected XOR Problem(异或前缀和)
题目:https://codeforces.com/contest/1174/problem/D D. Ehab and the Expected XOR Problem time limit per test 1 second memory limit per test 256 megabytes input standard input output standard out...原创 2019-06-04 17:01:22 · 257 阅读 · 0 评论