莫队算法
wuyileiju__
只要你愿意努力,世界就会给你惊喜!
展开
-
G - XOR and Favorite Number (莫队算法)
G - XOR and Favorite NumberBob has a favorite number k and ai of length n. Now he asks you to answer m queries. Each query is given by a pair li and ri and asks you to count the number of pairs of i...原创 2018-07-23 21:01:19 · 273 阅读 · 0 评论 -
牛客网暑期ACM多校训练营(第一场)-> J Different Integers (离线莫队+树状数组)
J Different IntegersGiven a sequence of integers a 1 , a 2 , …, a n and q pairs of integers (l 1 , r 1 ), (l 2 , r 2 ), …, (l q , r q ), find count(l 1 , r 1 ),count(l 2 , r 2 ), …, count(l q , r q ...原创 2018-07-22 10:21:42 · 208 阅读 · 0 评论 -
算法学习->莫队算法(小z的袜子)
一、什么是莫队算法二、莫队算法适用问题三、莫队算法模板原创 2018-07-22 10:18:12 · 339 阅读 · 0 评论