結果
| 問題 | No.52 よくある文字列の問題 |
| コンテスト | |
| ユーザー |
_matumo_
|
| 提出日時 | 2019-07-02 13:22:36 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 158 ms / 5,000 ms |
| コード長 | 161 bytes |
| 記録 | |
| コンパイル時間 | 555 ms |
| コンパイル使用メモリ | 20,696 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-04-03 03:41:54 |
| 合計ジャッジ時間 | 3,029 ms |
|
ジャッジサーバーID (参考情報) |
judge4_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
S =input()
ps=set()
def fx(sa, sb):
if len(sa):
fx(sa[1: ],sb+sa[0 ])
fx(sa[:-1],sb+sa[-1])
else: ps.add(sb)
fx(S,"")
print(len(ps))
_matumo_