結果
| 問題 |
No.52 よくある文字列の問題
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-10-19 01:07:52 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 198 bytes |
| コンパイル時間 | 107 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-11-07 19:05:42 |
| 合計ジャッジ時間 | 1,071 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 11 |
ソースコード
S = input()
N = ""
s = set()
def solve(S, N):
if len(S) == 0:
s.add(N)
print(N)
return
solve(S[1:], S[0] + N)
solve(S[:-1], S[-1] + N)
solve(S, N)
print(len(s))