結果
問題 | No.279 木の数え上げ |
ユーザー |
|
提出日時 | 2024-11-04 11:07:18 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 269 bytes |
コンパイル時間 | 1,256 ms |
コンパイル使用メモリ | 105,072 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-04 11:07:23 |
合計ジャッジ時間 | 4,990 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 21 |
ソースコード
#include <iostream>#include <algorithm>#include <map>#include <vector>using namespace std;int main() {string s;cin >> s;vector<int> v(100,0);for(int it:s) v[it] += 1;v[int('e')] /= 2;cout << min({v[int('t')],v[int('r')],v[int('e')]});return 0;}