結果
| 問題 | No.170 スワップ文字列(Easy) |
| コンテスト | |
| ユーザー |
c-yan
|
| 提出日時 | 2021-01-03 01:28:44 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 110 ms / 5,000 ms |
| コード長 | 106 bytes |
| 記録 | |
| コンパイル時間 | 523 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 19,032 KB |
| 最終ジャッジ日時 | 2026-04-29 21:16:45 |
| 合計ジャッジ時間 | 4,802 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
from itertools import permutations
S = input()
print(len(set(''.join(p) for p in permutations(S))) - 1)
c-yan