結果
問題 | No.8020 サンシャイン◯崎 |
ユーザー |
![]() |
提出日時 | 2017-03-31 22:25:30 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 4 ms / 1,000 ms |
コード長 | 363 bytes |
コンパイル時間 | 1,397 ms |
コンパイル使用メモリ | 167,480 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-23 13:51:52 |
合計ジャッジ時間 | 2,063 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
#include<bits/stdc++.h> using namespace std; #define int long long signed main(){ string str; cin >> str; map<char, int> mp; mp['Y'] = 0; mp['E'] = 0; mp['A'] = 0; mp['H'] = 0; mp['!'] = 0; for(int i = 0; i < str.length(); i++){ mp[str[i]]++; } cout << mp['Y'] << " " << mp['E'] << " " << mp['A'] << " " << mp['H'] << " " << mp['!'] << endl; }