結果

問題 No.279 木の数え上げ
ユーザー enen
提出日時 2016-04-03 14:43:46
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 111 bytes
コンパイル時間 125 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 96,000 KB
最終ジャッジ日時 2024-04-10 10:46:17
合計ジャッジ時間 7,957 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 101 ms
12,288 KB
testcase_01 AC 97 ms
12,416 KB
testcase_02 AC 93 ms
12,160 KB
testcase_03 WA -
testcase_04 AC 90 ms
12,160 KB
testcase_05 AC 92 ms
12,160 KB
testcase_06 AC 89 ms
12,160 KB
testcase_07 AC 90 ms
12,160 KB
testcase_08 AC 90 ms
12,288 KB
testcase_09 AC 90 ms
12,160 KB
testcase_10 MLE -
testcase_11 AC 226 ms
29,056 KB
testcase_12 AC 475 ms
60,672 KB
testcase_13 AC 168 ms
21,760 KB
testcase_14 MLE -
testcase_15 MLE -
testcase_16 MLE -
testcase_17 MLE -
testcase_18 AC 384 ms
54,784 KB
testcase_19 MLE -
testcase_20 MLE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

t=r=e=0
gets.chomp.split("").map{|w|
t += 2 if w == "t"
r += 2 if w == "r"
e += 1 if w == "e"
}
p [t,r,e/2].min
0