結果

問題 No.8020 サンシャイン◯崎
ユーザー pekempeypekempey
提出日時 2017-03-31 22:22:41
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 5 ms / 1,000 ms
コード長 298 bytes
コンパイル時間 725 ms
コンパイル使用メモリ 82,800 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-23 13:47:39
合計ジャッジ時間 1,557 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
#include <vector>
#include <cstdio>
#include <map>
#include <string>

using namespace std;

int main() {
	string s;
	cin >> s;
	map<char, int> mp;
	for (char c : s) {
		mp[c]++;
	}
	printf("%d %d %d %d %d\n", mp['Y'], mp['E'], mp['A'], mp['H'], mp['!']);
}
0