Home
Problem Set
Training
Contest
Homework
Discussion
Record
Ranking
Login
Language
English
한국어
简体中文
正體中文
#692. 集合元素排列
ID: 692
Type: Default
1000ms
128MiB
Tried: 0
Accepted: 0
Difficulty: (None)
Uploaded By:
admin
Tags>
搜索
集合元素排列
说明
设有n个整数的集合{1,2,…,n},从中取出任意r个数进行升序排列(r<n),试列出所有的排列(用回溯的思想做)
输入格式
一行,包含两个整数n和r,用空格隔开。
(0 < n <100, 0 <= r <= n)
输出格式
所有符合条件的排列,每组排列一行,每行的每个数占3字符宽度,右对齐。
3 2
1 2 1 3 2 3
Source
搜索
Login to Submit
Discussions (0)
Solutions (1)
Files
Statistics
CLOSE
SIGN IN
Using your 小彩虹 universal account
Username
Password
Remember me
Forgot password or username?