結果
問題 | No.279 木の数え上げ |
ユーザー |
![]() |
提出日時 | 2018-09-04 17:36:52 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 54 ms / 2,000 ms |
コード長 | 284 bytes |
コンパイル時間 | 1,410 ms |
コンパイル使用メモリ | 167,260 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-14 17:19:13 |
合計ジャッジ時間 | 3,179 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 21 |
ソースコード
#include<bits/stdc++.h> #define REP(i,n) for(int i=0;i<(int)(n);i++) using namespace std; typedef long long int ll; int main() { string S; map<char,int> mp; cin >> S; REP(i,S.size()){ mp[S[i]]++; } cout << min(min(mp['t'],mp['r']),mp['e']/2) << endl; return 0; }