結果

問題 No.170 スワップ文字列(Easy)
ユーザー nohakai3nohakai3
提出日時 2022-10-25 19:44:29
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 99 ms / 5,000 ms
コード長 154 bytes
コンパイル時間 324 ms
コンパイル使用メモリ 87,112 KB
実行使用メモリ 86,580 KB
最終ジャッジ日時 2023-09-16 17:17:52
合計ジャッジ時間 3,652 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,328 KB
testcase_01 AC 97 ms
86,532 KB
testcase_02 AC 99 ms
83,740 KB
testcase_03 AC 91 ms
83,828 KB
testcase_04 AC 92 ms
84,008 KB
testcase_05 AC 97 ms
86,580 KB
testcase_06 AC 94 ms
86,580 KB
testcase_07 AC 72 ms
76,356 KB
testcase_08 AC 94 ms
83,836 KB
testcase_09 AC 94 ms
83,904 KB
testcase_10 AC 94 ms
84,560 KB
testcase_11 AC 68 ms
70,972 KB
testcase_12 AC 66 ms
71,144 KB
testcase_13 AC 67 ms
71,028 KB
testcase_14 AC 69 ms
71,292 KB
testcase_15 AC 71 ms
75,240 KB
testcase_16 AC 68 ms
71,172 KB
testcase_17 AC 67 ms
71,160 KB
testcase_18 AC 66 ms
71,352 KB
testcase_19 AC 68 ms
70,968 KB
testcase_20 AC 68 ms
70,968 KB
testcase_21 AC 69 ms
75,060 KB
testcase_22 AC 68 ms
71,300 KB
testcase_23 AC 67 ms
71,028 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from itertools import permutations


s=list(input())
l=list(permutations(s))
p=[]
for x in l:
    x="".join(x)
    p.append(x)

print(len(list(set(p)))-1)
0