結果
| 問題 |
No.279 木の数え上げ
|
| コンテスト | |
| ユーザー |
square1001
|
| 提出日時 | 2016-10-29 16:52:06 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 26 ms / 2,000 ms |
| コード長 | 224 bytes |
| コンパイル時間 | 1,539 ms |
| コンパイル使用メモリ | 166,912 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-24 18:02:53 |
| 合計ジャッジ時間 | 2,869 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 21 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
string s; int t, r, e;
int main() {
cin >> s;
for(char c : s) {
if(c == 't') t++;
if(c == 'r') r++;
if(c == 'e') e++;
}
cout << min({t, r, e / 2}) << endl;
return 0;
}
square1001