結果
問題 | No.8020 サンシャイン◯崎 |
ユーザー | okkuukenken |
提出日時 | 2022-06-03 22:05:47 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 4 ms / 1,000 ms |
コード長 | 291 bytes |
コンパイル時間 | 728 ms |
コンパイル使用メモリ | 78,228 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-21 02:45:04 |
合計ジャッジ時間 | 1,530 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
#include<iostream> #include<string> using namespace std; int main(){ string s; cin>>s; int y=0,e=0,a=0,h=0,ex=0; for(auto x:s){ if(x=='Y') y++; if(x=='E') e++; if(x=='A') a++; if(x=='H') h++; if(x=='!') ex++; } cout<<y<<' '<<e<<' '<<a<<' '<<h<<' '<<ex<<endl; }