結果

問題 No.170 スワップ文字列(Easy)
ユーザー lllllll88938494lllllll88938494
提出日時 2023-06-03 20:27:51
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 101 ms / 5,000 ms
コード長 162 bytes
コンパイル時間 517 ms
コンパイル使用メモリ 86,848 KB
実行使用メモリ 79,944 KB
最終ジャッジ日時 2023-08-28 08:02:57
合計ジャッジ時間 3,640 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,496 KB
testcase_01 AC 99 ms
79,900 KB
testcase_02 AC 90 ms
76,960 KB
testcase_03 AC 91 ms
76,844 KB
testcase_04 AC 94 ms
77,016 KB
testcase_05 AC 101 ms
79,716 KB
testcase_06 AC 99 ms
79,944 KB
testcase_07 AC 77 ms
76,264 KB
testcase_08 AC 91 ms
76,804 KB
testcase_09 AC 90 ms
77,208 KB
testcase_10 AC 99 ms
78,096 KB
testcase_11 AC 68 ms
71,628 KB
testcase_12 AC 68 ms
71,332 KB
testcase_13 AC 70 ms
71,480 KB
testcase_14 AC 69 ms
71,472 KB
testcase_15 AC 76 ms
75,652 KB
testcase_16 AC 68 ms
71,284 KB
testcase_17 AC 69 ms
71,440 KB
testcase_18 AC 69 ms
71,688 KB
testcase_19 AC 68 ms
71,496 KB
testcase_20 AC 66 ms
71,632 KB
testcase_21 AC 73 ms
75,740 KB
testcase_22 AC 70 ms
71,240 KB
testcase_23 AC 69 ms
71,524 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from itertools import permutations
s=input()
ss = set()

for p in permutations(range(len(s))):
    t = [s[i] for i in p]
    ss.add(''.join(t))

print(len(ss)-1)
0