AF. 基础数论函数练习题
基础数论函数练习题
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.
题目背景
YSGH 牛逼
题目描述
给定长度为 的数组 , 次询问 $\operatorname{lcm}(a_l, a_{l + 1}, \ldots , a_{r - 1}, a_r)$。
由于输出较大,你只需要输出答案对 取模的值。
输入格式
本题有多组数据。
第一行一个正整数 ,表示数据组数。
对于每组数据,第一行两个正整数 。
接下来 行,第 行一个正整数表示 。
接下来 行,一行两个正整数 (),表示一次询问。
输出格式
对于每次询问,一行一个整数表示答案。
1
3 3
63
70
112
1 2
1 3
2 3
630
5040
560
提示
| 数据点编号 | ||
|---|---|---|
对于 的数据,,。
【A班】数学问题S
- Status
- Done
- Problem
- 62
- Open Since
- 2025-10-22 0:00
- Deadline
- 2025-11-28 23:59
- Extension
- 24 hour(s)