結果
| 問題 | No.279 木の数え上げ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-08-27 23:18:26 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 14 ms / 2,000 ms |
| + 791µs | |
| コード長 | 339 bytes |
| 記録 | |
| コンパイル時間 | 310 ms |
| コンパイル使用メモリ | 81,508 KB |
| 実行使用メモリ | 10,028 KB |
| 最終ジャッジ日時 | 2026-09-19 14:02:36 |
| 合計ジャッジ時間 | 2,505 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 21 |
ソースコード
#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
using ll = long long;
int main()
{
string s;
cin >> s;
ll numt =0;
ll numr = 0;
ll nume = 0;
for(const char c : s){
if(c == 't'){
numt++;
} else if (c == 'r'){
numr++;
} else if (c == 'e'){
nume++;
}
}
cout << min(numt,min(numr, nume/2)) << endl;
return 0;
}