#abc251a. A - Six Characters
A - Six Characters
Score : points
问题描述
给定一个由小写英文字母组成的字符串 。字符串 的长度在 到 (包含两端)之间。
请打印出长度为 的字符串,该字符串是 的重复。
可以证明,在本题的约束条件下,存在唯一这样一个字符串。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
You are given a string consisting of lowercase English characters. The length of is between and , inclusive.
Print the string of length that is a repetition of .
It can be shown that there uniquely exists such a string under the Constraints of this problem.
Constraints
- is a string consisting of lowercase English characters of length between and , inclusive.
Input
Input is given from Standard Input in the following format:
Output
Print the answer string, which is of length .
Sample Input 1
abc
Sample Output 1
abcabc
These are strings that are repetitions of abc
: abc
, abcabc
, abcabcabc
, abcabcabcabc
, and so on. Among them, abcabc
has the length of , so abcabc
should be printed.
Sample Input 2
zz
Sample Output 2
zzzzzz
update @ 2024/3/10 10:42:22