結果

問題 No.279 木の数え上げ
ユーザー basie23basie23
提出日時 2016-12-29 20:53:11
言語 Ruby
(3.3.0)
結果
MLE  
実行時間 -
コード長 207 bytes
コンパイル時間 263 ms
コンパイル使用メモリ 11,528 KB
実行使用メモリ 80,700 KB
最終ジャッジ日時 2023-08-21 23:20:50
合計ジャッジ時間 7,375 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
15,304 KB
testcase_01 AC 80 ms
15,340 KB
testcase_02 AC 84 ms
15,336 KB
testcase_03 AC 82 ms
15,156 KB
testcase_04 AC 79 ms
15,296 KB
testcase_05 AC 80 ms
15,344 KB
testcase_06 AC 80 ms
15,244 KB
testcase_07 AC 80 ms
15,288 KB
testcase_08 AC 81 ms
15,220 KB
testcase_09 AC 80 ms
15,296 KB
testcase_10 MLE -
testcase_11 AC 172 ms
28,292 KB
testcase_12 MLE -
testcase_13 AC 137 ms
22,860 KB
testcase_14 MLE -
testcase_15 MLE -
testcase_16 MLE -
testcase_17 MLE -
testcase_18 AC 323 ms
54,284 KB
testcase_19 MLE -
testcase_20 MLE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

s = gets.chomp.split("")
t = 0
r = 0
e = 0

s.each do |i|

  if i == "t"
    t += 1
  elsif i == "r"
    r += 1
  elsif i == "e"
    e += 1
  else
  end
end

e = e / 2

arr = [t, r, e]
arr.sort!

puts arr[0]
0