結果

問題 No.279 木の数え上げ
ユーザー maicune
提出日時 2019-08-29 18:21:41
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 24 ms / 2,000 ms
コード長 256 bytes
コンパイル時間 1,513 ms
コンパイル使用メモリ 160,124 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-17 16:58:53
合計ジャッジ時間 2,998 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
int main(){
    string s;
    cin>>s;
    int t,r,e,ans;
    t=count(s.begin(),s.end(),'t');
    r=count(s.begin(),s.end(),'r');
    e=count(s.begin(),s.end(),'e')/2;
    ans=min({t,r,e});
    cout<<ans<<endl;
}
0