結果

問題 No.279 木の数え上げ
ユーザー KisaragiEffectiveKisaragiEffective
提出日時 2020-11-07 19:55:45
言語 Ruby
(3.3.0)
結果
MLE  
実行時間 -
コード長 137 bytes
コンパイル時間 57 ms
コンパイル使用メモリ 11,412 KB
実行使用メモリ 86,044 KB
最終ジャッジ日時 2023-09-29 20:47:13
合計ジャッジ時間 10,654 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,312 KB
testcase_01 AC 80 ms
15,284 KB
testcase_02 AC 81 ms
15,088 KB
testcase_03 AC 80 ms
15,164 KB
testcase_04 AC 80 ms
15,252 KB
testcase_05 AC 81 ms
15,132 KB
testcase_06 AC 80 ms
15,248 KB
testcase_07 AC 82 ms
15,080 KB
testcase_08 AC 84 ms
15,180 KB
testcase_09 AC 81 ms
15,168 KB
testcase_10 MLE -
testcase_11 AC 250 ms
29,044 KB
testcase_12 AC 692 ms
59,444 KB
testcase_13 AC 168 ms
22,920 KB
testcase_14 MLE -
testcase_15 MLE -
testcase_16 MLE -
testcase_17 MLE -
testcase_18 AC 546 ms
50,540 KB
testcase_19 MLE -
testcase_20 MLE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

r = gets.chomp.chars.sort.group_by {|x| x}.map{|k,v| [k, v.size]}.to_h
puts [r.dig("t") || 0, r.dig("r") || 0, (r.dig("e") || 0) / 2].min
0