結果

問題 No.279 木の数え上げ
ユーザー basie23basie23
提出日時 2016-12-29 21:00:19
言語 Ruby
(3.3.0)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 111 bytes
コンパイル時間 183 ms
コンパイル使用メモリ 11,240 KB
実行使用メモリ 17,408 KB
最終ジャッジ日時 2023-08-21 23:25:30
合計ジャッジ時間 3,184 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,084 KB
testcase_01 AC 79 ms
15,260 KB
testcase_02 AC 80 ms
15,028 KB
testcase_03 AC 81 ms
15,368 KB
testcase_04 AC 79 ms
15,120 KB
testcase_05 AC 80 ms
15,128 KB
testcase_06 AC 81 ms
15,248 KB
testcase_07 AC 80 ms
15,288 KB
testcase_08 AC 80 ms
15,140 KB
testcase_09 AC 80 ms
15,352 KB
testcase_10 AC 82 ms
17,408 KB
testcase_11 AC 80 ms
15,340 KB
testcase_12 AC 82 ms
16,632 KB
testcase_13 AC 81 ms
15,384 KB
testcase_14 AC 83 ms
17,260 KB
testcase_15 AC 83 ms
16,836 KB
testcase_16 AC 83 ms
16,712 KB
testcase_17 AC 83 ms
16,988 KB
testcase_18 AC 83 ms
16,032 KB
testcase_19 AC 84 ms
16,968 KB
testcase_20 AC 84 ms
17,080 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

s = gets.chomp
t = s.count("t")
r = s.count("r")
e = s.count("e")

e = e / 2

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