結果

問題 No.3020 サンシャイン◯崎
ユーザー subsnsubsn
提出日時 2023-06-21 09:12:17
言語 C
(gcc 12.3.0)
結果
AC  
実行時間 128 ms / 1,000 ms
コード長 389 bytes
コンパイル時間 116 ms
コンパイル使用メモリ 27,884 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-11 04:43:39
合計ジャッジ時間 2,663 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 0 ms
4,376 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 1 ms
4,380 KB
testcase_03 AC 1 ms
4,380 KB
testcase_04 AC 1 ms
4,380 KB
testcase_05 AC 128 ms
4,376 KB
testcase_06 AC 1 ms
4,380 KB
testcase_07 AC 1 ms
4,376 KB
testcase_08 AC 22 ms
4,376 KB
testcase_09 AC 26 ms
4,380 KB
testcase_10 AC 121 ms
4,376 KB
testcase_11 AC 78 ms
4,376 KB
testcase_12 AC 127 ms
4,376 KB
testcase_13 AC 118 ms
4,380 KB
testcase_14 AC 115 ms
4,380 KB
testcase_15 AC 95 ms
4,376 KB
testcase_16 AC 80 ms
4,376 KB
testcase_17 AC 115 ms
4,376 KB
testcase_18 AC 118 ms
4,380 KB
testcase_19 AC 114 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <string.h>
int main()
{
	char s[100001];
	scanf("%s",&s);
	int c[5];
	memset(c,0,sizeof(int)*5);
	for (int i = 0;i < strlen(s);i++) {
		if (s[i] == 'Y')c[0]++;
		if (s[i] == 'E')c[1]++;
		if (s[i] == 'A')c[2]++;
		if (s[i] == 'H')c[3]++;
		if (s[i] == '!')c[4]++;
	}
	for (int i = 0;i < 5;i++) {
		printf("%d",c[i]);
		if (i < 4) printf(" ");else puts("");
	}
}
0