結果
問題 | No.8020 サンシャイン◯崎 |
ユーザー | Nafmo2 |
提出日時 | 2017-03-31 20:50:16 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 1,000 ms |
コード長 | 381 bytes |
コンパイル時間 | 872 ms |
コンパイル使用メモリ | 65,492 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-23 13:46:05 |
合計ジャッジ時間 | 1,407 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
#include<iostream> #include<string> #include<cassert> using namespace std; string S; int Y=0,E=0,A=0,H=0,EX=0; int main(){ ios::sync_with_stdio(false); cin>>S; assert(S.size()<=100000&&1<=S.size()); 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; }