-
-
Notifications
You must be signed in to change notification settings - Fork 125
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
[問題案] Static Range Mode Query #959
Labels
Comments
|
誤植指摘: |
誤植修正しました。 |
作業者募集。 |
作ります。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem name: Static Range Mode Query
Problem ID: static_range_mode_query
Problem
空でない数列$X$ の最頻値とは、現れる回数が最大であるような要素のこととします。
長さ$N$ の整数列 $A _ 0 , A _ 1 , \ldots ,A _ {N-1}$ に対して、 $Q$ 個のクエリを処理してください。
クエリ:$l,r$ が与えられるので、 $(A _ l , A _ {l+1} , \ldots , A _ {r-1})$ の最頻値を求めてください。最頻値が複数存在する場合はどれでもよいです。また、その数列にその値が現れる回数を求めてください。
Constraint
Solution / Reference
Input / Output
いつもの
Note
The text was updated successfully, but these errors were encountered: