結果

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

ソースコード

diff #

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

using namespace std;

int main() {
	string s;
	cin >> s;

	vector<int> ans;
	for (auto c : string("YEAH!")) {
		ans.push_back(count(s.begin(), s.end(), c));
	}

	for (int i = 0; i < ans.size(); i++) {
		if (i != 0) {
			cout << " ";
		}
		cout << ans[i];
	}
	cout << endl;
	return 0;
}
0