結果
| 問題 | No.52 よくある文字列の問題 |
| コンテスト | |
| ユーザー |
suppy193
|
| 提出日時 | 2017-02-06 14:39:37 |
| 言語 | Ruby (4.0.6 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 57 ms / 5,000 ms |
| + 79µs | |
| コード長 | 195 bytes |
| 記録 | |
| コンパイル時間 | 9 ms |
| コンパイル使用メモリ | 9,728 KB |
| 実行使用メモリ | 14,464 KB |
| 最終ジャッジ日時 | 2026-09-02 05:16:52 |
| 合計ジャッジ時間 | 1,807 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
コンパイルメッセージ
Syntax OK
ソースコード
s = gets.strip
@memo = []
def dfs(sub_str, s)
if s.length == 0
@memo << sub_str
return
end
dfs(sub_str + s[0], s[1..-1])
dfs(sub_str + s[-1], s[0..-2])
end
dfs("", s)
p @memo.uniq.length
suppy193