結果
| 問題 | 
                            No.279 木の数え上げ
                             | 
                    
| コンテスト | |
| ユーザー | 
                             daradara_sanma
                         | 
                    
| 提出日時 | 2017-07-11 15:08:47 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 21 ms / 2,000 ms | 
| コード長 | 365 bytes | 
| コンパイル時間 | 850 ms | 
| コンパイル使用メモリ | 56,112 KB | 
| 実行使用メモリ | 5,296 KB | 
| 最終ジャッジ日時 | 2024-10-07 14:59:24 | 
| 合計ジャッジ時間 | 1,872 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 21 | 
ソースコード
#include<iostream>
#include<cstdio>
#include<string>
using namespace std;
int main() {
	string str;
	int n[123] = {};
	cin >> str;
	for (auto i = str.begin(); i != str.end(); i++)
	{
		n[*i]++;
	}
	int ans = 10000000;
	if (ans > n['t']) ans = n['t'];
	if (ans > n['r']) ans = n['r'];
	if (ans > (n['e'] / 2)) ans = n['e'] / 2;
	cout << ans << endl;
	return 0;
}
            
            
            
        
            
daradara_sanma