結果
問題 | No.279 木の数え上げ |
ユーザー |
![]() |
提出日時 | 2016-03-21 22:46:32 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 22 ms / 2,000 ms |
コード長 | 610 bytes |
コンパイル時間 | 881 ms |
コンパイル使用メモリ | 82,008 KB |
実行使用メモリ | 5,296 KB |
最終ジャッジ日時 | 2024-10-14 15:26:47 |
合計ジャッジ時間 | 1,785 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 21 |
ソースコード
#include <iostream> #include <vector> #include <algorithm> #include <numeric> #include <set> #include <map> #include <queue> #include <stack> #include <sstream> #include <string> #include <cstdlib> #include <cstdio> #include <cstring> #include <cmath> #include <limits> #include <complex> #include <functional> using namespace std; #define rep(i,n) for (int (i)=0;(i)<(int)(n);++(i)) string s; int count(char c) { int cnt = 0; rep(i, s.length()) { if (s[i] == c) cnt++; } return cnt; } int main() { cin >> s; cout << min(min(count('t'), count('r')), count('e')/2) << endl; }