結果

問題 No.279 木の数え上げ
ユーザー LEDLED
提出日時 2019-02-01 17:41:50
言語 Ruby
(3.3.0)
結果
MLE  
実行時間 -
コード長 120 bytes
コンパイル時間 36 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 88,320 KB
最終ジャッジ日時 2024-05-02 05:14:17
合計ジャッジ時間 7,568 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 93 ms
12,032 KB
testcase_01 AC 89 ms
12,032 KB
testcase_02 AC 90 ms
12,288 KB
testcase_03 AC 89 ms
12,160 KB
testcase_04 AC 90 ms
12,288 KB
testcase_05 AC 94 ms
12,288 KB
testcase_06 AC 88 ms
12,160 KB
testcase_07 AC 90 ms
12,160 KB
testcase_08 AC 91 ms
12,288 KB
testcase_09 AC 85 ms
12,288 KB
testcase_10 MLE -
testcase_11 AC 217 ms
27,520 KB
testcase_12 AC 446 ms
55,808 KB
testcase_13 AC 161 ms
20,992 KB
testcase_14 MLE -
testcase_15 MLE -
testcase_16 MLE -
testcase_17 MLE -
testcase_18 AC 370 ms
51,072 KB
testcase_19 MLE -
testcase_20 MLE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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