結果
問題 |
No.8020 サンシャイン◯崎
|
ユーザー |
👑 |
提出日時 | 2020-02-08 15:41:52 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 4 ms / 1,000 ms |
コード長 | 398 bytes |
コンパイル時間 | 693 ms |
コンパイル使用メモリ | 65,532 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-25 08:50:34 |
合計ジャッジ時間 | 1,853 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
#include <iostream> using namespace std; int ans[5]; int main(){ string s;cin>>s; for(int i = 0; s.size() > i; i++){ if(s[i] == 'Y')ans[0]++; else if(s[i] == 'E')ans[1]++; else if(s[i] == 'A')ans[2]++; else if(s[i] == 'H')ans[3]++; else ans[4]++; } cout << ans[0] << " " << ans[1] << " " << ans[2] << " " << ans[3] << " " << ans[4] << endl; }