結果
問題 | No.279 木の数え上げ |
ユーザー |
|
提出日時 | 2019-07-23 21:32:36 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 24 ms / 2,000 ms |
コード長 | 254 bytes |
コンパイル時間 | 1,580 ms |
コンパイル使用メモリ | 170,376 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-26 09:21:23 |
合計ジャッジ時間 | 2,681 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 21 |
ソースコード
#include <bits/stdc++.h>using namespace std;int a[26];int main() {string s;cin >> s;for (auto& c : s) {a[c - 'a']++;}int b[] = {a['t' - 'a'], a['r' - 'a'], a['e' - 'a'] / 2};sort(b, b + 3);cout << b[0] << endl;return 0;}