結果
| 問題 | No.170 スワップ文字列(Easy) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-08-11 17:17:46 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 105 ms / 5,000 ms |
| + 923µs | |
| コード長 | 238 bytes |
| 記録 | |
| コンパイル時間 | 291 ms |
| コンパイル使用メモリ | 21,336 KB |
| 実行使用メモリ | 21,804 KB |
| 最終ジャッジ日時 | 2026-09-03 00:37:48 |
| 合計ジャッジ時間 | 4,186 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_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()