秋招模拟赛第41场|2023.08.27-字节跳动秋招第二场
- Status
- Done
- Rule
- IOI
- Problem
- 4
- Start at
- 2023-9-8 19:00
- End at
- 2023-9-8 21:00
- Duration
- 2 hour(s)
- Host
- Partic.
- 38
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.
定义f(d)为d的最大数位的值 例如:
f(1012)=max(1,0,1,2)=2
f(988)=max(9,8,8)=9
由于答案可能很大,请求出∑i=xyf(i) 在模109+7 意义下的取值。
输入两个整数x,y。
1≤x≤y≤1018
输出一个非负整数,表示答案
输入输出示例仅供调试,后台判题数据一般不包含示例
输入
7 8
输出
15
说明
∑i=78f(i)=f(7)+f(8)=15
输入输出示例仅供调试,后台判题数据一般不包含示例
输入
2 202
输出
1236
扫码备注加群即可,期待您的到来~
By signing up a CodeFun2000 universal account, you can submit code and join discussions in all online judging services provided by us.