結果
| 問題 |
No.279 木の数え上げ
|
| コンテスト | |
| ユーザー |
kkkk97368086
|
| 提出日時 | 2021-12-01 15:35:59 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 23 ms / 2,000 ms |
| コード長 | 304 bytes |
| コンパイル時間 | 1,731 ms |
| コンパイル使用メモリ | 166,480 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-04 15:22:16 |
| 合計ジャッジ時間 | 2,346 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 21 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
string s;
cin >> s;
int t=0,r=0,e=0;
int l=s.size();
for(int i=0; i<l; i++){
if(s[i]=='t') t++;
if(s[i]=='r') r++;
if(s[i]=='e') e++;
}
int ee = e/2;
cout << min(ee,min(t,r)) << endl;
}
kkkk97368086