结束(end)
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
题目描述
Misaki Mei 给了你一个序列 ,每次询问给一个区间 。
查询 ,且 是 倍数的二元组 的个数。
输入格式
第一行两个整数表示 。
第二行 个整数表示序列 。
之后 行,每行两个整数 表示一次询问。
输出格式
对于每个询问,输出一行一个整数表示答案。
样例
【样例输入】
6 3
1 1 4 5 1 4
1 1
4 5
1 4
【样例输出】
1
3
10
样例
见下发 。
该样例满足测试点 的性质。
数据范围
对所有数据 ,。
测试点编号 | 特殊性质 | |
---|---|---|
无 | ||
在 中随机生成 | ||
无 | ||
NOIP 模拟赛(八)pretest
- Status
- Done
- Rule
- IOI
- Problem
- 4
- Start at
- 2024-8-22 7:45
- End at
- 2024-8-22 12:15
- Duration
- 4.5 hour(s)
- Host
- Partic.
- 22