求教
  • 板块学术版
  • 楼主45dinо
  • 当前回复0
  • 已保存回复0
  • 发布时间2020/6/22 21:28
  • 上次更新2023/11/7 00:12:37
查看原帖
求教
334379
45dinо楼主2020/6/22 21:28

昨天的Atcoder Beginner Contest 的F题实在不会,题解都看不懂,能不能大致给一个思路?

How many strings can be obtained by applying the following operation on a string SS exactly KK times: "choose one lowercase English letter and insert it somewhere"?

The answer can be enormous, so print it modulo (109+7)(10^9+7) .

  • KK is an integer between 11 and 10610^6 (inclusive).
  • SS is a string of length between 11 and 10610^6 (inclusive) consisting of lowercase English letters.
2020/6/22 21:28
加载中...