HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Ad-Hoc > problem:


50303 - Pattern

Guest
• Review clarifications (1)

Section problems

• 50528 - Rock-Scissors-Paper
• 50493 - n-digit kth Prime Number
• 50520 - Filling a Matrix Randomly
• 50454 - What day is it?
• 50474 - Sum of Two Primes
• 50597 - Drawing Diamonds
• 50253 - Timer
• 50294 - Centimeters to Yards
• 50303 - Pattern
• 50882 - FizzBuzz
• 50322 - Snake Pattern
• 50302 - Paper Scissors Rock
• 50396 - Cinema Tickets - 1
• 50366 - Student Averages (2 Grades)
• 50357 - Convert Euros into Dollars
• 50466 - Drawing Square From Stars
• 50351 - Convert inches to cm

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