Beaking Spackwards
시간 제한1초메모리 제한1024 MB
길이가 100000 이하인 소문자 문자열을 만들어 팰린드롬 부분 문자열의 개수가 정확히 s가 되도록 한다.
문제
The 42nd meeting of the Fortnightly Palindrome Convention is coming up, and for this special occasion, they want to spend a session admiring a special kind of palindrome-esque words. These words are not necessarily a palindrome by themselves, but they should contain an exact, predetermined number of palindrome substrings. As preparation for the session, your task is to generate these palindrome-esque words.
As an example, consider the second sample input. The output abacaba contains exactly palindrome substrings: the seven individual letters, two times aba (at the start and at the end), aca, bacab, and abacaba.
입력
The input consists of:
- One line with an integer (), the number of required palindrome substrings.
출력
Output a string that contains exactly palindrome substrings. This string should have length between and characters (inclusive) and only consists of English lowercase letters (a-z).
If there are multiple valid solutions, you may output any one of them.