結果

問題 No.170 スワップ文字列(Easy)
ユーザー brthyyjpbrthyyjp
提出日時 2021-03-25 01:51:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 102 ms / 5,000 ms
コード長 148 bytes
コンパイル時間 414 ms
コンパイル使用メモリ 87,192 KB
実行使用メモリ 79,396 KB
最終ジャッジ日時 2023-08-17 22:53:35
合計ジャッジ時間 3,658 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,312 KB
testcase_01 AC 102 ms
79,396 KB
testcase_02 AC 86 ms
76,760 KB
testcase_03 AC 87 ms
76,976 KB
testcase_04 AC 88 ms
76,900 KB
testcase_05 AC 92 ms
79,396 KB
testcase_06 AC 92 ms
79,188 KB
testcase_07 AC 78 ms
76,352 KB
testcase_08 AC 86 ms
76,652 KB
testcase_09 AC 88 ms
76,944 KB
testcase_10 AC 92 ms
78,312 KB
testcase_11 AC 72 ms
71,392 KB
testcase_12 AC 71 ms
71,484 KB
testcase_13 AC 72 ms
71,308 KB
testcase_14 AC 70 ms
71,568 KB
testcase_15 AC 75 ms
75,384 KB
testcase_16 AC 71 ms
71,436 KB
testcase_17 AC 71 ms
71,152 KB
testcase_18 AC 71 ms
71,520 KB
testcase_19 AC 71 ms
71,308 KB
testcase_20 AC 70 ms
71,488 KB
testcase_21 AC 74 ms
75,472 KB
testcase_22 AC 72 ms
71,528 KB
testcase_23 AC 71 ms
71,372 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = str(input())
s = list(s)
S = set()
import itertools
for p in itertools.permutations(s, len(s)):
    t = ''.join(p)
    S.add(t)
print(len(S)-1)
0