結果
| 問題 | No.279 木の数え上げ |
| コンテスト | |
| ユーザー |
hokto
|
| 提出日時 | 2018-12-20 12:34:07 |
| 言語 | Ruby (4.0.6 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 59 ms / 2,000 ms |
| + 949µs | |
| コード長 | 195 bytes |
| 記録 | |
| コンパイル時間 | 62 ms |
| コンパイル使用メモリ | 8,832 KB |
| 実行使用メモリ | 16,640 KB |
| 最終ジャッジ日時 | 2026-09-03 23:31:09 |
| 合計ジャッジ時間 | 3,349 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 21 |
コンパイルメッセージ
Syntax OK
ソースコード
input=gets.chomp
t_cnt=input.count("t")
r_cnt=input.count("r")
e_cnt=input.count("e")
tree_cnt=e_cnt/2
if(tree_cnt>r_cnt)
tree_cnt=r_cnt
end
if(tree_cnt>t_cnt)
tree_cnt=t_cnt
end
print tree_cnt
hokto