結果
| 問題 | No.8020 サンシャイン◯崎 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-06-03 22:05:47 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 1,000 ms |
| コード長 | 291 bytes |
| 記録 | |
| コンパイル時間 | 814 ms |
| コンパイル使用メモリ | 147,128 KB |
| 実行使用メモリ | 7,972 KB |
| 最終ジャッジ日時 | 2026-04-09 10:36:36 |
| 合計ジャッジ時間 | 1,756 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}