結果

問題 No.279 木の数え上げ
ユーザー mesh1nek0x0mesh1nek0x0
提出日時 2018-07-05 20:47:19
言語 Ruby
(3.3.0)
結果
AC  
実行時間 163 ms / 2,000 ms
コード長 117 bytes
コンパイル時間 75 ms
コンパイル使用メモリ 11,280 KB
実行使用メモリ 23,408 KB
最終ジャッジ日時 2023-09-13 18:01:56
合計ジャッジ時間 3,559 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
15,228 KB
testcase_01 AC 81 ms
15,052 KB
testcase_02 AC 80 ms
15,160 KB
testcase_03 AC 81 ms
15,132 KB
testcase_04 AC 82 ms
15,344 KB
testcase_05 AC 83 ms
15,244 KB
testcase_06 AC 80 ms
15,160 KB
testcase_07 AC 80 ms
15,320 KB
testcase_08 AC 79 ms
15,248 KB
testcase_09 AC 79 ms
15,056 KB
testcase_10 AC 155 ms
22,676 KB
testcase_11 AC 95 ms
16,676 KB
testcase_12 AC 129 ms
21,648 KB
testcase_13 AC 90 ms
15,924 KB
testcase_14 AC 163 ms
22,568 KB
testcase_15 AC 150 ms
22,772 KB
testcase_16 AC 143 ms
21,696 KB
testcase_17 AC 156 ms
23,408 KB
testcase_18 AC 121 ms
21,116 KB
testcase_19 AC 150 ms
22,456 KB
testcase_20 AC 163 ms
22,580 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

#!/bin/ruby
S = gets.chomp
t = S.scan(/t/).count
r = S.scan(/r/).count
e = S.scan(/e/).count

puts [t, r, e / 2].min 
0