結果

問題 No.279 木の数え上げ
ユーザー Series_205
提出日時 2019-10-23 22:09:25
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 67 ms / 2,000 ms
コード長 292 bytes
コンパイル時間 603 ms
コンパイル使用メモリ 69,164 KB
最終ジャッジ日時 2025-01-08 00:52:07
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
#include <string>
using namespace std;
int t,r,e;
string s;
int main(){
    cin>>s;
    for(int i=0;i<s.size();i++){
        if(s[i]=='t')t++;
        if(s[i]=='r')r++;
        if(s[i]=='e')e++;
    }
    cout<<min(t,min(r,e/2))<<endl;
    return 0;
}
0