秋招模拟赛第39场|2023.09.02-淘天-研发
- Status
- Done
- Rule
- IOI
- Problem
- 3
- Start at
- 2023-9-6 19:00
- End at
- 2023-9-6 20:12
- Duration
- 1.2 hour(s)
- Host
- Partic.
- 25
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.
塔子哥最近一直在学习数组,突然有了一个想法,他定义了一个“特别数组”,当且仅当满足以下三个条件:
现在给出n和m的值,请你求出满足条件的“特别数组”数量。由于答案可能过大,请对109+7取模。
两个正整数n和m,用空格隔开。
1≤n,m≤1000
特别数组的数量,答案对109+7取模。
输入输出示例仅供调试,后台判题数据一般不包含示例
输入
3 5
输出
4
说明
[1,2,3],[4,2,3],[2,4,3],[5,4,3]共有以上四个好数组
扫码备注加群即可,期待您的到来~
By signing up a CodeFun2000 universal account, you can submit code and join discussions in all online judging services provided by us.