結果
| 問題 | No.279 木の数え上げ |
| コンテスト | |
| ユーザー |
kokosei
|
| 提出日時 | 2024-07-06 09:42:14 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| + 618µs | |
| コード長 | 397 bytes |
| 記録 | |
| コンパイル時間 | 883 ms |
| コンパイル使用メモリ | 162,500 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-08-09 10:29:21 |
| 合計ジャッジ時間 | 2,820 ms |
|
ジャッジサーバーID (参考情報) |
judge3_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