結果

問題 No.170 スワップ文字列(Easy)
ユーザー gorugo30gorugo30
提出日時 2021-03-16 23:05:16
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 96 ms / 5,000 ms
コード長 192 bytes
コンパイル時間 434 ms
コンパイル使用メモリ 87,316 KB
実行使用メモリ 79,744 KB
最終ジャッジ日時 2023-08-08 13:21:44
合計ジャッジ時間 3,558 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,768 KB
testcase_01 AC 95 ms
79,744 KB
testcase_02 AC 88 ms
77,004 KB
testcase_03 AC 89 ms
76,948 KB
testcase_04 AC 90 ms
76,948 KB
testcase_05 AC 96 ms
79,684 KB
testcase_06 AC 96 ms
79,608 KB
testcase_07 AC 75 ms
76,304 KB
testcase_08 AC 89 ms
76,928 KB
testcase_09 AC 87 ms
76,840 KB
testcase_10 AC 93 ms
78,048 KB
testcase_11 AC 71 ms
71,236 KB
testcase_12 AC 71 ms
71,528 KB
testcase_13 AC 71 ms
71,392 KB
testcase_14 AC 71 ms
71,424 KB
testcase_15 AC 75 ms
76,220 KB
testcase_16 AC 71 ms
71,544 KB
testcase_17 AC 72 ms
71,668 KB
testcase_18 AC 71 ms
71,540 KB
testcase_19 AC 71 ms
71,528 KB
testcase_20 AC 70 ms
71,420 KB
testcase_21 AC 75 ms
76,356 KB
testcase_22 AC 71 ms
71,220 KB
testcase_23 AC 70 ms
71,532 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
st = set()
from itertools import permutations
l = [i for i in range(len(S))]
for p in permutations(l):
    T = ""
    for i in p:
        T += S[i]
    st.add(T)
print(len(st) - 1)
0