結果

問題 No.279 木の数え上げ
ユーザー Naoki_M_Naoki_M_
提出日時 2015-11-05 22:42:54
言語 Ruby
(3.3.0)
結果
TLE  
実行時間 -
コード長 154 bytes
コンパイル時間 286 ms
コンパイル使用メモリ 11,292 KB
実行使用メモリ 271,312 KB
最終ジャッジ日時 2023-10-11 14:11:14
合計ジャッジ時間 11,209 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
19,664 KB
testcase_01 AC 81 ms
15,216 KB
testcase_02 AC 85 ms
15,280 KB
testcase_03 AC 81 ms
15,048 KB
testcase_04 AC 82 ms
15,304 KB
testcase_05 AC 84 ms
15,152 KB
testcase_06 AC 83 ms
15,076 KB
testcase_07 AC 84 ms
15,096 KB
testcase_08 AC 84 ms
15,412 KB
testcase_09 AC 82 ms
15,028 KB
testcase_10 TLE -
testcase_11 MLE -
testcase_12 TLE -
testcase_13 AC 382 ms
46,468 KB
testcase_14 MLE -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

s = gets.chomp
cnt = [0, 0, 0]
s.split('').map { |c| ['t', 'r', 'e'].each_index { |i| cnt[i] += 1 if  ['t', 'r', 'e'][i] == c } }
cnt[2] /= 2
puts cnt.min
0