Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[問題案] Range Set Range Composite #829

Closed
SSRS-cp opened this issue Aug 4, 2022 · 4 comments · Fixed by #1085
Closed

[問題案] Range Set Range Composite #829

SSRS-cp opened this issue Aug 4, 2022 · 4 comments · Fixed by #1085
Assignees
Labels
work in progress 担当者が決定した

Comments

@SSRS-cp
Copy link
Collaborator

SSRS-cp commented Aug 4, 2022

問題名: Range Set Range Composite

問題

N 個の一次関数の列がある。Q クエリ

0 l r c d: f_l, f_{l+1}, ..., f_r を cx+d に変更
1 l r x: f_r(...f_{l+1}(f_l(x))...) mod 998244353 を出力

制約

#122 と同じ

メモ

これ必要か?必要ないかもしれません 意見を募集します
想定は これ です (通常の遅延セグ木だと累乗の計算が必要なため log が 2 つついてしまう)

@maspypy
Copy link
Collaborator

maspypy commented Jul 29, 2023

log が落ちるならあってもよいと思います。
テストケース作りを少し工夫しないと、普通の遅延セグ木と速度差が出にくいかもしれません。

@maspypy
Copy link
Collaborator

maspypy commented Aug 5, 2023

作業者募集。

@maspypy maspypy added the contributions-welcome 審査済み label Aug 5, 2023
@maspypy
Copy link
Collaborator

maspypy commented Jan 2, 2024

ところで、別解法。こっちの方がよく見る処理かも。

  • 列をいくつかの定数区間に分けて管理
  • $[a,b)$$[a,x)$$[x,b)$ に分ける / いくつかの区間をまとめてひとつの定数区間で置き換える / いくつかの定数区間の積をかける、をやる。
  • segtree + set などでできる

@NachiaVivias
Copy link
Collaborator

それが verify できるの便利そうですね。

作業します。

@NachiaVivias NachiaVivias added work in progress 担当者が決定した and removed contributions-welcome 審査済み labels Jan 2, 2024
@NachiaVivias NachiaVivias self-assigned this Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
work in progress 担当者が決定した
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants