結果

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

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
int main(){
    string S;
    cin >> S;
    int y = 0,e = 0,a = 0,h= 0,excrimation = 0;
    for(int b = 0; b < S.size(); b++){
        if(S.at(b) == 'Y')
        y++;
        else if(S.at(b) == 'E')
        e++;
        else if(S.at(b) == 'A')
        a++;
        else if(S.at(b) == 'H')
        h++;
        else if(S.at(b) == '!')
        excrimation++;
    }
        cout << y << " " << e << " " << a <<" " << h
 << " " << excrimation << endl;   
}
0