Ayoub and Lost Array

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.

题目描述

已知有一个长度为nn(1n2×1051\leq n\leq 2 \times 10^5)的数列,每一个数的大小在[l,r][l,r](1lr1091\leq l \leq r \leq 10^9)之间。求出有多少种方案使得这个数列的和为33的倍数。答案对109+710^9+7取模。当然,如果无法组成任何一个合法的数列,答案即为00

输入格式

一行三个正整数nn,ll,rr

输出格式

一行,表示方案数模109+710^9+7的结果。

2 1 3
3
3 2 2
1
9 9 99
711426616

线性DP基础

Not Claimed
Status
Done
Problem
20
Open Since
2026-3-11 0:00
Deadline
2026-3-31 23:59
Extension
24 hour(s)