結果
| 問題 |
No.279 木の数え上げ
|
| コンテスト | |
| ユーザー |
arrows
|
| 提出日時 | 2017-01-20 20:32:54 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 25 ms / 2,000 ms |
| コード長 | 360 bytes |
| コンパイル時間 | 536 ms |
| コンパイル使用メモリ | 64,256 KB |
| 実行使用メモリ | 5,292 KB |
| 最終ジャッジ日時 | 2024-12-23 02:54:57 |
| 合計ジャッジ時間 | 1,582 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 21 |
ソースコード
#include <iostream>
using namespace std;
int main()
{
string s;
cin >> s;
int c[3] = {};
for (char ch : s) {
if (ch == 't') {
c[0]++;
} else if (ch == 'r') {
c[1]++;
} else if (ch == 'e') {
c[2]++;
}
}
cout << min(c[0], min(c[1], c[2] / 2)) << endl;
return 0;
}
arrows