結果
| 問題 | No.52 よくある文字列の問題 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-09-03 09:48:19 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 179 bytes |
| 記録 | |
| コンパイル時間 | 798 ms |
| コンパイル使用メモリ | 20,572 KB |
| 実行使用メモリ | 142,700 KB |
| 最終ジャッジ日時 | 2026-04-04 00:09:55 |
| 合計ジャッジ時間 | 5,486 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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))