結果
問題 | No.8020 サンシャイン◯崎 |
ユーザー |
![]() |
提出日時 | 2017-03-31 23:43:37 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 4 ms / 1,000 ms |
コード長 | 377 bytes |
コンパイル時間 | 705 ms |
コンパイル使用メモリ | 54,620 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-23 14:03:19 |
合計ジャッジ時間 | 1,280 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
#include <iostream> #include <string> using namespace std; int main(){ int y[5]={0}; string str; cin>>str; for(int i=0;i<str.length();i++){ y[0]+=(str[i]=='Y'); y[1]+=(str[i]=='E'); y[2]+=(str[i]=='A'); y[3]+=(str[i]=='H'); y[4]+=(str[i]=='!'); } printf("%d %d %d %d %d",y[0],y[1],y[2],y[3],y[4]); return 0; }