結果
問題 |
No.279 木の数え上げ
|
ユーザー |
![]() |
提出日時 | 2018-09-16 10:36:42 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 321 bytes |
コンパイル時間 | 1,500 ms |
コンパイル使用メモリ | 166,912 KB |
実行使用メモリ | 5,424 KB |
最終ジャッジ日時 | 2024-07-18 07:20:48 |
合計ジャッジ時間 | 2,791 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 WA * 20 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ string s; cin >> s; int tre[3] ={0,0,0}; for(int i=0; i < s.size(); i++){ if(s[i] == 't') tre[0]++; if(s[i] == 'r') tre[1]++; if(s[i] == 'e') tre[2]++; } s[2] /= 2; cout << min({tre[0],tre[1],tre[2]}) << endl; }