結果
| 問題 | No.52 よくある文字列の問題 |
| コンテスト | |
| ユーザー |
lllllll88938494
|
| 提出日時 | 2022-01-23 10:36:22 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 241 bytes |
| 記録 | |
| コンパイル時間 | 657 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 20,464 KB |
| 最終ジャッジ日時 | 2026-05-23 04:08:14 |
| 合計ジャッジ時間 | 2,966 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 WA * 1 RE * 1 |
ソースコード
s=input()
sset=set()
def cal(x,ss):
if x in sset:
return
if len(x) == len(s):
sset.add(x)
return
cal(x+ss[0],ss[1:])
cal(x+ss[-1],ss[:-1])
cal(s[0],s[1:])
cal(s[1],s[:-1])
print(len(sset))
lllllll88938494