Java??????????????????
???????????? ???????[ 2016/10/8 10:43:34 ] ??????????????????? Java
?????????????£?
???????????????????飬?????е????????????????????????“?????”????г???????1??2?г????1??2??12??21.?????4??“?????”
??????????????
????????????????????????????????????????????
?????????????
???????????????ж????“?????”
?????????????
????3
????1 2 3
????????????
????15
?????????·??????????????????????????
?????????????????ο?
????import java.util.ArrayList;
????import java.util.LinkedList;
????import java.util.List;
????import java.util.Scanner;
????public class Main{
????static int index=0;
????public static void main(String[] args) {
????Scanner mScanner=new Scanner(System.in);
????int num=mScanner.nextInt();
????List<String> array=new ArrayList<String>();
????for (int i = 0; i < num; i++) {
????array.add(mScanner.next());
????}
????listAll(array?? "");
????System.out.println(index-1);
????}
????public static void listAll(List list?? String prefix) {
????index++;
????//if (list.isEmpty()) {
????// System.out.print(prefix+" ");
????//}
????int len = list.size();
????for (int i = 0; i < len; i++) {
????List temp = new LinkedList(list);
????listAll(temp?? prefix + temp.remove(i));
????}
????}
????}
??????????Java????????????“?????”???????????????????????java??????????????.
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11