結果

問題 No.279 木の数え上げ
ユーザー fshutofshuto
提出日時 2019-04-24 09:02:12
言語 Ruby
(3.3.0)
結果
MLE  
実行時間 -
コード長 177 bytes
コンパイル時間 202 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 88,064 KB
最終ジャッジ日時 2024-04-24 21:19:06
合計ジャッジ時間 7,157 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
12,160 KB
testcase_01 AC 78 ms
12,288 KB
testcase_02 AC 81 ms
12,160 KB
testcase_03 AC 78 ms
12,032 KB
testcase_04 AC 80 ms
12,160 KB
testcase_05 AC 84 ms
12,160 KB
testcase_06 AC 79 ms
12,288 KB
testcase_07 AC 75 ms
12,288 KB
testcase_08 AC 80 ms
12,288 KB
testcase_09 AC 75 ms
12,288 KB
testcase_10 MLE -
testcase_11 AC 182 ms
27,520 KB
testcase_12 AC 393 ms
55,680 KB
testcase_13 AC 143 ms
20,864 KB
testcase_14 MLE -
testcase_15 MLE -
testcase_16 MLE -
testcase_17 MLE -
testcase_18 AC 328 ms
50,816 KB
testcase_19 MLE -
testcase_20 MLE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

s = gets.chomp.chars
tc = 0
rc = 0
ec = 0
s.each do |ss|
  if ss == 't'
    tc += 1
  elsif ss == 'r'
    rc += 1
  elsif ss == 'e'
    ec += 1
  end
end
puts [tc, rc, ec/2].min
0