結果
問題 | No.279 木の数え上げ |
ユーザー | iwamot |
提出日時 | 2016-01-17 01:24:54 |
言語 | Ruby (3.3.0) |
結果 |
MLE
|
実行時間 | - |
コード長 | 157 bytes |
コンパイル時間 | 98 ms |
コンパイル使用メモリ | 11,924 KB |
実行使用メモリ | 82,344 KB |
最終ジャッジ日時 | 2023-10-20 00:24:31 |
合計ジャッジ時間 | 7,119 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 84 ms
16,116 KB |
testcase_01 | AC | 82 ms
16,116 KB |
testcase_02 | AC | 83 ms
16,116 KB |
testcase_03 | AC | 84 ms
16,116 KB |
testcase_04 | AC | 82 ms
16,116 KB |
testcase_05 | AC | 82 ms
16,116 KB |
testcase_06 | AC | 81 ms
16,116 KB |
testcase_07 | AC | 83 ms
16,112 KB |
testcase_08 | AC | 82 ms
16,116 KB |
testcase_09 | AC | 81 ms
16,116 KB |
testcase_10 | MLE | - |
testcase_11 | AC | 193 ms
29,288 KB |
testcase_12 | MLE | - |
testcase_13 | AC | 151 ms
23,844 KB |
testcase_14 | MLE | - |
testcase_15 | MLE | - |
testcase_16 | MLE | - |
testcase_17 | MLE | - |
testcase_18 | AC | 361 ms
55,568 KB |
testcase_19 | MLE | - |
testcase_20 | MLE | - |
コンパイルメッセージ
Syntax OK
ソースコード
h = {'t' => 0, 'r' => 0, 'e' => 0} gets.chomp.chars.select{|c| c == 't' || c == 'r' || c == 'e'}.each do |c| h[c] += 1 end h['e'] /= 2 puts h.values.min