HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Unsorted > problem:


50625 - Permutations

Guest
• Discussion of problem (1)

Section problems

• 50617 - KBH
• 50618 - Code Correction
• 50619 - The Mars Rover
• 50620 - Poker
• 50621 - Postal Figures
• 50622 - Sequence
• 50623 - Rectangles
• 50624 - Simple problem
• 50625 - Permutations
• 50626 - The route
• 50627 - Area of a polygon
• 50628 - Matrix
• 50629 - Minuses
• 50630 - Radio Station
• 50631 - Robots
• 50632 - Again numbers game
• 50638 - Message

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.
Автор: Фёдор Меньшиков, ВГПУ. Difficulty Alpha

Permutations

Translated by Google Russian
A string consisting of M symbols. Display all permutations of this string of characters.
Input
The first line of the file is the original string.
Output
Output in each line of the file for one permutation. Permutations can be output in any order. Repetition and rows that are not permutations of the original, should not be.
Limitations
2 ≤ M ≤ 8; characters - the letters of the alphabet and numbers.

Sample 1 Sample 2
AB
IOX
Sample Output 1 Sample Output 2
AB
BA
XOI
OIX
IXO
XIO
OXI
IOX

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

www.contester.ru