結果
| 問題 |
No.8020 サンシャイン◯崎
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-05 05:14:52 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 1,000 ms |
| コード長 | 465 bytes |
| コンパイル時間 | 988 ms |
| コンパイル使用メモリ | 97,600 KB |
| 最終ジャッジ日時 | 2025-01-10 21:33:16 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <set>
#include <numeric>
#include <math.h>
#include <map>
#include <queue>
#include <assert.h>
using namespace std;
typedef long long int ll;
int main(){
cin.tie(nullptr);
ios::sync_with_stdio(false);
string s; cin >> s;
int y=0,e=0,a=0,h=0,z=0;
for(char c:s){
if(c=='Y')y++;
if(c=='E')e++;
if(c=='A')a++;
if(c=='H')h++;
if(c=='!')z++;
}
printf("%d %d %d %d %d\n",y,e,a,h,z);
}