結果
問題 | No.279 木の数え上げ |
ユーザー |
![]() |
提出日時 | 2020-01-12 09:27:21 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 24 ms / 2,000 ms |
コード長 | 280 bytes |
コンパイル時間 | 1,434 ms |
コンパイル使用メモリ | 166,612 KB |
実行使用メモリ | 5,296 KB |
最終ジャッジ日時 | 2024-11-28 00:09:55 |
合計ジャッジ時間 | 2,436 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 21 |
ソースコード
#include <bits/stdc++.h>using namespace std;int main() {string S;cin >> S;int t = 0, r = 0, e = 0;for (int i = 0; i < S.size(); i++) {if (S.at(i) == 't') t++;if (S.at(i) == 'r') r++;if (S.at(i) == 'e') e++;}cout << min({t, r, e / 2}) << "\n";}