結果
問題 | No.279 木の数え上げ |
ユーザー |
![]() |
提出日時 | 2018-12-20 12:34:07 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 93 ms / 2,000 ms |
コード長 | 195 bytes |
コンパイル時間 | 267 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 13,952 KB |
最終ジャッジ日時 | 2024-09-25 08:53:01 |
合計ジャッジ時間 | 2,969 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 21 |
コンパイルメッセージ
Syntax OK
ソースコード
input=gets.chompt_cnt=input.count("t")r_cnt=input.count("r")e_cnt=input.count("e")tree_cnt=e_cnt/2if(tree_cnt>r_cnt)tree_cnt=r_cntendif(tree_cnt>t_cnt)tree_cnt=t_cntendprint tree_cnt