結果

問題 No.279 木の数え上げ
ユーザー Mizuno
提出日時 2024-11-04 10:59:41
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
RE  
実行時間 -
コード長 248 bytes
コンパイル時間 1,223 ms
コンパイル使用メモリ 105,652 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-04 10:59:47
合計ジャッジ時間 5,608 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other RE * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
#include <map>

#include <vector>

using namespace std;

int main() {
	
	string s;
	cin >> s;
	vector<int> v(100,0);
	for(char it:s) {
		v[it] += 1;
	}
	v['e'] /= 2;
	cout << min({v['t'],v['r'],v['e']});
	
}
0