結果

問題 No.8020 サンシャイン◯崎
ユーザー toratorafg
提出日時 2019-12-14 20:03:33
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 4 ms / 1,000 ms
コード長 390 bytes
コンパイル時間 433 ms
コンパイル使用メモリ 55,392 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-28 03:21:04
合計ジャッジ時間 1,208 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
using namespace std;
int main(void){
    string s;
    int y=0,e=0,a=0,h=0,l=0;
    cin>>s;
    for(char c:s){
        switch(c){
        case 'Y':y++;break;
        case 'E':e++;break;
        case 'A':a++;break;
        case 'H':h++;break;
        case '!':l++;break;
        }
    }
    cout<<y<<" "<<e<<" "<<a<<" "<<h<<" "<<l<<endl;
    return 0;
}
0