結果
問題 |
No.279 木の数え上げ
|
ユーザー |
![]() |
提出日時 | 2015-09-18 23:01:03 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 304 bytes |
コンパイル時間 | 434 ms |
コンパイル使用メモリ | 54,488 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-19 07:07:51 |
合計ジャッジ時間 | 1,363 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 WA * 20 |
ソースコード
#include<iostream> #include<string> using namespace std; string s; int num[256]; int main(){ cin >> s; for( int i = 0; i < s.length(); i++ ) num[s[i]]++; char tree[6] = "tree"; int ans = 1145140; for( int i = 0; i < 4; i++ ) ans = min(ans, num[tree[i]]); cout << ans << endl; return 0; }