結果

問題 No.279 木の数え上げ
ユーザー chokichi-Nchokichi-N
提出日時 2023-06-23 18:11:05
言語 Ruby
(3.3.0)
結果
AC  
実行時間 82 ms / 2,000 ms
コード長 160 bytes
コンパイル時間 375 ms
コンパイル使用メモリ 11,240 KB
実行使用メモリ 17,344 KB
最終ジャッジ日時 2023-09-13 13:03:45
合計ジャッジ時間 3,008 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
15,024 KB
testcase_01 AC 78 ms
15,144 KB
testcase_02 AC 77 ms
14,972 KB
testcase_03 AC 76 ms
15,252 KB
testcase_04 AC 79 ms
15,124 KB
testcase_05 AC 77 ms
15,076 KB
testcase_06 AC 77 ms
15,032 KB
testcase_07 AC 77 ms
15,244 KB
testcase_08 AC 77 ms
15,032 KB
testcase_09 AC 78 ms
15,024 KB
testcase_10 AC 80 ms
16,984 KB
testcase_11 AC 78 ms
15,432 KB
testcase_12 AC 79 ms
16,488 KB
testcase_13 AC 78 ms
15,288 KB
testcase_14 AC 82 ms
17,344 KB
testcase_15 AC 80 ms
17,120 KB
testcase_16 AC 80 ms
16,800 KB
testcase_17 AC 80 ms
17,200 KB
testcase_18 AC 79 ms
16,116 KB
testcase_19 AC 81 ms
17,084 KB
testcase_20 AC 80 ms
17,252 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

input = gets.chomp
tree_count = []

tree_count[0] = input.count("t")
tree_count[1] = input.count("r")
tree_count[2] = input.count("e") / 2

puts tree_count.min
0