結果
問題 |
No.279 木の数え上げ
|
ユーザー |
|
提出日時 | 2020-03-06 20:05:44 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 24 ms / 2,000 ms |
コード長 | 285 bytes |
コンパイル時間 | 470 ms |
コンパイル使用メモリ | 55,028 KB |
実行使用メモリ | 5,300 KB |
最終ジャッジ日時 | 2024-10-14 03:27:26 |
合計ジャッジ時間 | 1,493 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 21 |
ソースコード
#include <iostream> using namespace std; int main(){ int t=0,r=0,e=0; string str; cin >> str; for(int i=0;i<str.size();i++){ if(str[i]=='t')t++; if(str[i]=='r')r++; if(str[i]=='e')e++; } cout << min(min(t,r),e/2) << endl; return 0; }