結果
問題 | No.8020 サンシャイン◯崎 |
ユーザー |
![]() |
提出日時 | 2017-03-31 22:36:30 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 4 ms / 1,000 ms |
コード長 | 422 bytes |
コンパイル時間 | 518 ms |
コンパイル使用メモリ | 65,540 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-23 13:57:25 |
合計ジャッジ時間 | 1,111 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
#include <iostream> using namespace std; int main(){ string S; cin>>S; int cnt; cnt = 0; for(auto s:S)cnt+=(s=='Y'); cout<<cnt<<' '; cnt = 0; for(auto s:S)cnt+=(s=='E'); cout<<cnt<<' '; cnt = 0; for(auto s:S)cnt+=(s=='A'); cout<<cnt<<' '; cnt = 0; for(auto s:S)cnt+=(s=='H'); cout<<cnt<<' '; cnt = 0; for(auto s:S)cnt+=(s=='!'); cout<<cnt<<endl; }