結果
| 問題 | No.279 木の数え上げ |
| コンテスト | |
| ユーザー |
kokosei
|
| 提出日時 | 2024-07-06 09:42:14 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 2,000 ms |
| コード長 | 397 bytes |
| 記録 | |
| コンパイル時間 | 1,079 ms |
| コンパイル使用メモリ | 162,916 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-03-27 21:54:09 |
| 合計ジャッジ時間 | 2,339 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 21 |
ソースコード
#include <iostream>
#include <algorithm>
using namespace std;
using ll = long long;
string S;
int main(void){
ios::sync_with_stdio(false);
cin.tie(nullptr);
cin >> S;
ll cntt = 0, cntr = 0, cnte = 0;
for(char c : S){
if(c == 't')cntt++;
if(c == 'r')cntr++;
if(c == 'e')cnte++;
}
cout << min({cntt, cntr, cnte / 2}) << endl;
return 0;
}
kokosei