結果
問題 | No.8020 サンシャイン◯崎 |
ユーザー |
![]() |
提出日時 | 2017-03-31 23:16:54 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 4 ms / 1,000 ms |
コード長 | 520 bytes |
コンパイル時間 | 632 ms |
コンパイル使用メモリ | 81,244 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-23 14:02:21 |
合計ジャッジ時間 | 1,285 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
#include<iostream> #include<string> #include<algorithm> #include<math.h> #include<queue> #include<map> #define ll long long const int MOD= 1000000007; const int INF = 1000000005; using namespace std; int main() { string s; int a[5] = {}; cin >> s; for (int i = 0; i < s.length(); i++) { if (s[i] == 'Y')a[0]++; if (s[i] == 'E')a[1]++; if (s[i] == 'A')a[2]++; if (s[i] == 'H')a[3]++; if (s[i] == '!')a[4]++; } cout << a[0] << " " << a[1] << " " << a[2] << " " << a[3] << " " << a[4] << endl; return 0; }