結果

問題 No.8020 サンシャイン◯崎
ユーザー 西尾
提出日時 2018-03-06 17:35:35
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 4 ms / 1,000 ms
コード長 473 bytes
コンパイル時間 1,391 ms
コンパイル使用メモリ 168,004 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-23 14:07:21
合計ジャッジ時間 2,099 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

namespace
{
char S[ 100100 ];
int i;
int iY;
int iE;
int iA;
int iH;
int i_;
}

int main()
{
int i;
char C;

	cin >> S;

	i = 0;
	while( ( C = S[ i ] ) != '\0' )
	{
		if( C == 'Y' )
			iY++;
		else if( C == 'E' )
			iE++;
		else if( C == 'A' )
			iA++;
		else if( C == 'H' )
			iH++;
		else if( C == '!' )
			i_++;

		i++;
	}

	cout << iY << " " <<
			iE << " " <<
			iA << " " <<
			iH << " " <<
			i_ << endl;

	return 0;
}
0