結果
問題 |
No.279 木の数え上げ
|
ユーザー |
![]() |
提出日時 | 2016-08-16 23:18:04 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 299 bytes |
コンパイル時間 | 627 ms |
コンパイル使用メモリ | 57,336 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-07 18:32:51 |
合計ジャッジ時間 | 2,107 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 WA * 1 |
ソースコード
#include <iostream> #include <string> #include <algorithm> using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); int tree = 0; string S; cin >> S; int len = S.length(); for (int i = 0; i < len; i++) { if (S[i] == 'e') { tree++; } } cout << tree/2 << endl; return 0; }