結果
問題 | No.279 木の数え上げ |
ユーザー |
|
提出日時 | 2024-11-04 11:11:44 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 24 ms / 2,000 ms |
コード長 | 347 bytes |
コンパイル時間 | 1,175 ms |
コンパイル使用メモリ | 103,548 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-04 11:11:47 |
合計ジャッジ時間 | 2,577 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 21 |
ソースコード
#include <iostream>#include <algorithm>#include <map>#include <vector>using namespace std;int main() {string s;cin >> s;int arr[3] = {0,0,0};for(char it:s) {if(it == 't') arr[0]++;else if(it == 'r') arr[1]++;else if(it == 'e') arr[2]++;}arr[2] /= 2;cout << *min_element(begin(arr), end(arr));return 0;}