結果
問題 | No.8020 サンシャイン◯崎 |
ユーザー |
![]() |
提出日時 | 2017-03-27 01:26:40 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 1,000 ms |
コード長 | 413 bytes |
コンパイル時間 | 182 ms |
コンパイル使用メモリ | 31,232 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-23 13:45:12 |
合計ジャッジ時間 | 1,004 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
#include <cstdio>#define REP(i,n) for (int i=0;i<(n);i++)int main(){char S[100010];scanf("%s",S);int a[5]={};for(int i=0;S[i]!=0;i++){if(S[i]=='Y'){a[0]++;}else if(S[i]=='E'){a[1]++;}else if(S[i]=='A'){a[2]++;}else if(S[i]=='H'){a[3]++;}else if(S[i]=='!'){a[4]++;}}REP(j,5){printf("%d",a[j]);if(j<4){printf(" ");}else{printf("\n");}}scanf("%d");return 0;}