結果
問題 | No.279 木の数え上げ |
ユーザー |
|
提出日時 | 2017-10-08 18:47:48 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 45 ms / 2,000 ms |
コード長 | 244 bytes |
コンパイル時間 | 1,649 ms |
コンパイル使用メモリ | 168,632 KB |
実行使用メモリ | 5,296 KB |
最終ジャッジ日時 | 2024-11-17 05:46:30 |
合計ジャッジ時間 | 2,589 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 21 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(void) { string s; cin >> s; map<char, int> mp; for (int i = 0; i < s.size(); i++) { mp[s[i]]++; } cout << min(mp['t'], min(mp['r'], mp['e'] / 2)) << endl; return 0; }