結果

問題 No.279 木の数え上げ
ユーザー 0w1
提出日時 2016-11-19 18:01:34
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 24 ms / 2,000 ms
コード長 253 bytes
コンパイル時間 1,507 ms
コンパイル使用メモリ 168,336 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-26 22:12:22
合計ジャッジ時間 3,004 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

signed main(){
  string S; cin >> S;
  vector< int > cnt( 256 );
  for( int i = 0; i < S.size(); ++i )
    ++cnt[ S[ i ] ];
  cout << min( { cnt[ 't' ], cnt[ 'r' ], cnt[ 'e' ] / 2 } ) << endl;
  return 0;
}
0