結果

問題 No.279 木の数え上げ
ユーザー enen
提出日時 2016-04-03 14:18:13
言語 Ruby
(3.3.0)
結果
MLE  
実行時間 -
コード長 124 bytes
コンパイル時間 48 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 96,128 KB
最終ジャッジ日時 2024-04-10 10:45:23
合計ジャッジ時間 8,239 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

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