結果
問題 | No.279 木の数え上げ |
ユーザー |
![]() |
提出日時 | 2018-09-16 10:38:22 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 24 ms / 2,000 ms |
コード長 | 323 bytes |
コンパイル時間 | 1,468 ms |
コンパイル使用メモリ | 166,668 KB |
実行使用メモリ | 5,420 KB |
最終ジャッジ日時 | 2024-07-18 07:20:51 |
合計ジャッジ時間 | 2,489 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 21 |
ソースコード
#include <bits/stdc++.h>using namespace std;int main(){string s;cin >> s;int tre[3] ={0,0,0};for(int i=0; i < s.size(); i++){if(s[i] == 't') tre[0]++;if(s[i] == 'r') tre[1]++;if(s[i] == 'e') tre[2]++;}tre[2] /= 2;cout << min({tre[0],tre[1],tre[2]}) << endl;}