結果
問題 |
No.279 木の数え上げ
|
ユーザー |
![]() |
提出日時 | 2017-08-23 20:00:55 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 342 bytes |
コンパイル時間 | 551 ms |
コンパイル使用メモリ | 58,972 KB |
実行使用メモリ | 5,296 KB |
最終ジャッジ日時 | 2024-10-15 13:07:25 |
合計ジャッジ時間 | 2,092 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 WA * 1 |
ソースコード
#include <iostream> #include <string> #include <cmath> using namespace std; int a[3]; int main() { string s; int ans = 1000000; cin >> s; for (auto& e : s) { if (e == 't') a[0]++; else if (e == 'r') a[1]++; else if (e == 'e') a[2]++; } a[2] /= 2; for (auto& e : a) { ans = (ans, e); } cout << ans << endl; }