HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Repetition (Loops) > problem:


50303 - Pattern

Guest
• Review clarifications (1)

Volume problems

• 148. 50596 - Your Ride Is Here (US...
• 148. 50596 - Your Ride Is Here (US...
• 150. 50763 - Valid Password
• 151. 50560 - Max Distance
• 153. 50368 - Right-most non zero d...
• 155. 50379 - a^b modulus k
• 158. 50404 - Sum of Self Powers
• 30. 50764 - Fast Typing Competition
• 50303 - Pattern
• 50882 - FizzBuzz
• 50308 - IT Knowledge Seminars
• 50320 - Random Sorted List
• 001. 50385 - From m to n
• 002. 50365 - Sum of the numbers f...
• 002. 50452 - Multiplication Table
• 003. 50387 - Passengers in the Train
• 006. 50293 - Sum of odd numbers f...

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.
Prepared by Halil Karimis.

Pattern

Write a program to create a pattern with letters like in the following samples.

User will enter only one integer number (0< N<27) that will represent number of the lines and number of letters going to be displayed on each line.

Input specification
An integer number (N)

Output specification
Pattern with letters

Sample Input I
4
Sample Input II
2
Sample Input III
6
Sample Output I
ABCD
BCDA
CDAB
DABC
Sample Output II
AB
BA
Sample Output III
ABCDEF
BCDEFA
CDEFAB
DEFABC
EFABCD
FABCDE


Для отправки решений необходимо выполнить вход.

www.contester.ru