結果
問題 | No.279 木の数え上げ |
ユーザー |
|
提出日時 | 2019-09-03 17:09:52 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 75 ms / 2,000 ms |
コード長 | 462 bytes |
コンパイル時間 | 1,738 ms |
コンパイル使用メモリ | 174,928 KB |
実行使用メモリ | 5,296 KB |
最終ジャッジ日時 | 2024-12-24 06:57:49 |
合計ジャッジ時間 | 3,298 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 21 |
ソースコード
/** @file 279.cpp @title No.279 木の数え上げ - yukicoder @url https://yukicoder.me/problems/no/279 **/ #include <bits/stdc++.h> using namespace std; typedef long long LL; #define ALL(obj) (obj).begin(), (obj).end() #define REP(i, N) for (int i = 0; i < (N); ++i) int main() { string S; cin >> S; map<string, int> m; REP(i, (int)S.size()) { m[S.substr(i, 1)]++; } cout << min({m["t"], m["r"], m["e"] / 2}) << endl; return 0; }