結果
問題 | No.52 よくある文字列の問題 |
ユーザー | code-devo |
提出日時 | 2016-01-20 07:05:15 |
言語 | Ruby (3.3.0) |
結果 |
AC
|
実行時間 | 87 ms / 5,000 ms |
コード長 | 213 bytes |
コンパイル時間 | 61 ms |
コンパイル使用メモリ | 11,928 KB |
実行使用メモリ | 16,120 KB |
最終ジャッジ日時 | 2023-10-22 04:02:19 |
合計ジャッジ時間 | 1,690 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge10 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 85 ms
16,120 KB |
testcase_01 | AC | 85 ms
16,120 KB |
testcase_02 | AC | 86 ms
16,120 KB |
testcase_03 | AC | 84 ms
16,120 KB |
testcase_04 | AC | 86 ms
16,120 KB |
testcase_05 | AC | 87 ms
16,120 KB |
testcase_06 | AC | 86 ms
16,120 KB |
testcase_07 | AC | 87 ms
16,116 KB |
testcase_08 | AC | 86 ms
16,120 KB |
testcase_09 | AC | 85 ms
16,120 KB |
testcase_10 | AC | 85 ms
16,120 KB |
コンパイルメッセージ
Syntax OK
ソースコード
S = gets.chomp H = {} def fill_hash(str, i, j) if i > j then H[str] = true return end fill_hash(str + S[i], i + 1, j) fill_hash(str + S[j], i, j - 1) end fill_hash("", 0, S.length-1) puts H.size