HELLOKIT - Hello Kitty
Kitty sends a kind of original email messages to her friend Garf. To write a message, she
chooses a word W and a number n and replicates W n times horizontally. Then she repeats this
string in the next line, but rotating the characters once to the left. And she repeats this 'rotate-
and-output' process until the word W appears displayed as the rst column of the rectangular
pattern that she produces.
As an example, when she chooses the word Hello and the number 3, she gets the pattern:
Kitty has been sending such emails during the last three years. Recently, Garf told her that
perhaps her work may be automatized with a software to produce Kitty's patterns. Could you
The input le contains several test cases, each one of them in a separate line. Each test case
has a word and a positive integer that should generate the corresponding rectangular pattern.
The word is a string of alphabetic characters (a..z). The number is less than 10.
A line whose contents is a single period character means the end of the input (this last line
is not to be processed).
Output texts for each input case are presented in the same order that input is read. For each
test case the answer must be a left aligned Kitty pattern corresponding to the input.
YES! Time: 0.00, Memory Used: 3.3M
@(Tjandra Satria Gunawan)(æ›¾æ¯…æ˜†): Please can you tell how the length of the word is 26
Please can you tell how the length of the word is 26
@UnrealNinja: Please can you tell how the length of the word is 26
ac in 1 go 0..s
GOt Ac in first attempt
nice one :)
Easy, AC in 1st attempt with java
Nice Pattern Question.