結果

問題 No.279 木の数え上げ
ユーザー chokichi-Nchokichi-N
提出日時 2023-06-23 18:08:54
言語 Ruby
(3.3.0)
結果
AC  
実行時間 106 ms / 2,000 ms
コード長 153 bytes
コンパイル時間 222 ms
コンパイル使用メモリ 11,148 KB
実行使用メモリ 21,324 KB
最終ジャッジ日時 2023-09-13 13:02:26
合計ジャッジ時間 3,172 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
15,172 KB
testcase_01 AC 77 ms
15,228 KB
testcase_02 AC 78 ms
15,068 KB
testcase_03 AC 77 ms
15,052 KB
testcase_04 AC 81 ms
15,244 KB
testcase_05 AC 77 ms
15,260 KB
testcase_06 AC 78 ms
15,256 KB
testcase_07 AC 78 ms
15,148 KB
testcase_08 AC 78 ms
14,928 KB
testcase_09 AC 77 ms
15,128 KB
testcase_10 AC 104 ms
21,036 KB
testcase_11 AC 82 ms
15,796 KB
testcase_12 AC 95 ms
18,388 KB
testcase_13 AC 80 ms
15,424 KB
testcase_14 AC 105 ms
21,324 KB
testcase_15 AC 103 ms
20,704 KB
testcase_16 AC 99 ms
20,636 KB
testcase_17 AC 106 ms
21,040 KB
testcase_18 AC 91 ms
17,240 KB
testcase_19 AC 104 ms
21,016 KB
testcase_20 AC 105 ms
20,996 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

input = gets.chomp
count = []

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

puts count.min
0