結果
| 問題 | No.170 スワップ文字列(Easy) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-08-11 17:17:46 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 187 ms / 5,000 ms |
| コード長 | 238 bytes |
| 記録 | |
| コンパイル時間 | 555 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 20,888 KB |
| 最終ジャッジ日時 | 2026-04-11 11:18:53 |
| 合計ジャッジ時間 | 6,721 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
from itertools import permutations
from sys import stdin, stdout
input = lambda: stdin.readline().rstrip()
write = stdout.write
def main():
S = input()
strings = {s for s in permutations(S)}
print(len(strings) - 1)
main()