#c. Strivore
Strivore
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.
题面翻译
对于字符串 ,进行 次下列操作可以变成多少个不同的字符串。
- 向任意位置插入一个小写英文字符。
答案可能很大,输出答案 。 by djh123456 。
题目描述
「好きな英小文字 文字を好きな位置に挿入する」という操作を文字列 にちょうど 回繰り返してできる文字列は何通りあるでしょう?
答えは非常に大きくなる可能性があるので、 で割ったあまりを出力してください。
输入格式
入力は以下の形式で標準入力から与えられる。
输出格式
条件を満たす文字列の個数を で割ったあまりを出力せよ。
样例 #1
样例输入 #1
5
oof
样例输出 #1
575111451
样例 #2
样例输入 #2
37564
whydidyoudesertme
样例输出 #2
318008117
提示
制約
- は 以上 以下の整数
- は英小文字からなる長さ 以上 以下の文字列
Sample Explanation 1
たとえば、proofend
、moonwolf
、onionpuf
などが条件を満たします。 それに対し、oofsix
、oofelevennn
、voxafolt
、fooooooo
などは条件を満たしません。
北辰OI提高组第2周序列问题课后练习题👍
- Status
- Done
- Rule
- IOI
- Problem
- 44
- Start at
- 2024-1-7 16:00
- End at
- 2024-2-18 8:00
- Duration
- 1000 hour(s)
- Host
- Partic.
- 15