結果

問題 No.279 木の数え上げ
ユーザー tamura2004tamura2004
提出日時 2020-05-10 14:15:43
言語 Ruby
(3.3.0)
結果
MLE  
(最新)
AC  
(最初)
実行時間 -
コード長 158 bytes
コンパイル時間 378 ms
コンパイル使用メモリ 11,372 KB
実行使用メモリ 67,052 KB
最終ジャッジ日時 2023-09-21 22:36:58
合計ジャッジ時間 5,571 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
15,228 KB
testcase_01 AC 82 ms
15,288 KB
testcase_02 AC 79 ms
15,160 KB
testcase_03 AC 78 ms
15,096 KB
testcase_04 AC 78 ms
15,356 KB
testcase_05 AC 79 ms
15,084 KB
testcase_06 AC 79 ms
15,296 KB
testcase_07 AC 79 ms
15,044 KB
testcase_08 AC 79 ms
15,016 KB
testcase_09 AC 79 ms
15,340 KB
testcase_10 AC 350 ms
63,264 KB
testcase_11 AC 139 ms
25,136 KB
testcase_12 AC 268 ms
48,852 KB
testcase_13 AC 117 ms
20,832 KB
testcase_14 MLE -
testcase_15 AC 332 ms
58,220 KB
testcase_16 AC 293 ms
54,704 KB
testcase_17 AC 360 ms
63,636 KB
testcase_18 AC 236 ms
41,576 KB
testcase_19 AC 349 ms
62,376 KB
testcase_20 MLE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

t = 0
r = 0
e = 0

gets.chars.each do |s|
  case s
  when "t" then t += 1
  when "r" then r += 1
  when "e" then e += 1
  end
end
ans = [t,r,e/2].min
puts ans
0