/
Time Limit: 2 sec / Memory Limit: 1024 MiB
配点 : 100 点
問題文
整数 N および、英小文字からなる長さが N 未満 の文字列 S が与えられます。
長さが N になるまで S の先頭に英小文字 o を追加し続けることで得られる文字列を出力してください。
制約
- 2\leq N \leq 100
- N は整数
- S は長さ 1 以上 N 未満の英小文字からなる文字列
入力
入力は以下の形式で標準入力から与えられる。
N S
出力
答えを出力せよ。
入力例 1
5 abc
出力例 1
ooabc
N=5、S の長さは 3 であるため、S の先頭に o を 5-3=2 個追加した文字列が答えとなります。
入力例 2
2 o
出力例 2
oo
入力例 3
12 vgxgpuam
出力例 3
oooovgxgpuam
Score : 100 points
Problem Statement
You are given an integer N and a string S consisting of lowercase English letters with length less than N.
Print the string obtained by repeatedly adding the lowercase English letter o to the beginning of S until its length becomes N.
Constraints
- 2\leq N \leq 100
- N is an integer.
- S is a string consisting of lowercase English letters with length between 1 and N - 1, inclusive.
Input
The input is given from Standard Input in the following format:
N S
Output
Print the answer.
Sample Input 1
5 abc
Sample Output 1
ooabc
Since N=5 and the length of S is 3, the answer is the string obtained by adding 5-3=2 os to the beginning of S.
Sample Input 2
2 o
Sample Output 2
oo
Sample Input 3
12 vgxgpuam
Sample Output 3
oooovgxgpuam