#P8283. 「MCOI-08」Dantalion
「MCOI-08」Dantalion
题目背景
And thus it is Tairitsu's turn to gain the upper hand.
题目描述
给定一个长为 ()的非负整数序列 ()。
有 个问询()。
每次问询两个整数 (),有多少对整数 满足:
- ;
- ,其中 。
Tip: 本题总时限较大,故请减少无意义提交量(如高复杂度暴力或是直接提交所给尚需完善的代码等)。
输入格式
由于本题数据较多,您不需要输入输出,请完善以下程序中的 init(int, int, vector<int>)
和 solve(int, int)
函数,并提交。正解不依赖于其模板。
提示
数据规模与约定
对于 的数据,,,。
对于 的数据,输入合法。
- Subtask 1(5 pts,
Tutorial):。 - Subtask 2(7 pts,
Tutorial): - Subtask 3(11 pts,
PST 5.0):。 - Subtask 4(17 pts,
PRS 8.2):。 - Subtask 5(61 pts,
FTR 10.8):。
为什么要多个 分呢,因为谱师打本曲时性了 Lost.
Idea: Powerless; Solution: ccz181078&noip&w33z; Code: w33z; Data: w33z
This problem was added on 2022.4.10. Thanks for their help.
The data was strengthened on 2022.4.27 by w33z.
2022.4.10 - 2022.5.4 : 25 days 1st kill (水军带你飞).
2022.4.10 - 2022.5.17 : 38 days 2nd kill (WhisperingSnowflakes).
2022.4.10 - 2022.6.9 : 61 days 3rd kill (Verdandi).