Easystringsloops
Repeat a String
Time limit 2 s · Memory 64 MBAcceptance: —Solved by: 0
Statement
The first line contains a string s of lowercase Latin letters, the second line contains k. Print on one line the result of writing s exactly k times in a row.
Examples
Example 1
Input
ab 3
Output
ababab
Example 2
Input
x 5
Output
xxxxx
Constraints
- 1 ≤ length of s ≤ 100
- 1 ≤ k ≤ 100