結果
問題 | No.8020 サンシャイン◯崎 |
ユーザー |
![]() |
提出日時 | 2017-03-31 22:47:57 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 4 ms / 1,000 ms |
コード長 | 355 bytes |
コンパイル時間 | 2,071 ms |
コンパイル使用メモリ | 167,952 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-23 14:00:39 |
合計ジャッジ時間 | 2,736 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
#include <bits/stdc++.h>using namespace std;string s; int c[5];int main() {cin >> s;for(int i = 0; i < s.size(); i++) {if(s[i] == 'Y') c[0]++;if(s[i] == 'E') c[1]++;if(s[i] == 'A') c[2]++;if(s[i] == 'H') c[3]++;if(s[i] == '!') c[4]++;}cout << c[0] << ' ' << c[1] << ' ' << c[2] << ' ' << c[3] << ' ' << c[4] << endl;return 0;}