結果
問題 | No.279 木の数え上げ |
ユーザー |
![]() |
提出日時 | 2021-05-11 11:48:19 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 23 ms / 2,000 ms |
コード長 | 290 bytes |
コンパイル時間 | 2,045 ms |
コンパイル使用メモリ | 195,188 KB |
最終ジャッジ日時 | 2025-01-21 10:03:19 |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 21 |
ソースコード
//https://ncode.syosetu.com/n4830bu/279/ #include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; vector<int> cnt(26); for (auto&& c : S) { cnt[c - 'a']++; } cout << min({cnt['t' - 'a'], cnt['r' - 'a'], cnt['e' - 'a'] / 2}) << endl; }