今晚cf的F
  • 板块学术版
  • 楼主oOoOoOOOooOO
  • 当前回复1
  • 已保存回复1
  • 发布时间2022/10/16 01:06
  • 上次更新2023/10/27 07:20:25
查看原帖
今晚cf的F
42324
oOoOoOOOooOO楼主2022/10/16 01:06

You have an array a consisting of n positive integers and you have to handle q queries of the following types: 1 i x: change ai to x, 2 l r k: check if the number of occurrences of every positive integer in the subarray al,al+1,…ar is a multiple of k (check the example for better understanding).

想到了一个随机的做法。没交上去。想交互题的 HardVersionHard Version 浪费了太多时间。感觉用 KK 棵树状数组,然后每棵树都用不同的随机去做应该是对的

2022/10/16 01:06
加载中...