結果
問題 |
No.279 木の数え上げ
|
ユーザー |
![]() |
提出日時 | 2017-06-17 16:49:37 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 22 ms / 2,000 ms |
コード長 | 402 bytes |
コンパイル時間 | 1,531 ms |
コンパイル使用メモリ | 167,596 KB |
実行使用メモリ | 5,292 KB |
最終ジャッジ日時 | 2024-10-01 11:26:45 |
合計ジャッジ時間 | 2,772 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 21 |
ソースコード
#include "bits/stdc++.h" #define MOD 1000000007 #define INF 11234567890 #define in std::cin #define out std::cout #define rep(i,N) for(LL i=0;i<N;++i) typedef long long int LL; std::string S; int t, r, e; int main() { in >> S; for (auto c : S) { if (c == 't') { ++t; } if (c == 'r') { ++r; } if (c == 'e') { ++e; } } e /= 2; out << std::min(t, std::min(r, e)) << std::endl; return 0; }