結果
| 問題 |
No.52 よくある文字列の問題
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-09-03 09:48:19 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 179 bytes |
| コンパイル時間 | 363 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 138,996 KB |
| 最終ジャッジ日時 | 2024-09-03 09:48:27 |
| 合計ジャッジ時間 | 6,775 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 WA * 6 |
ソースコード
from itertools import permutations
S = list(input())
h = S[0]
e = S[-1]
ans = set()
for i in permutations(S):
if i[0] == h or i[0] == e:
ans.add(i)
print(len(ans))