結果

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

ソースコード

diff #

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

#define FOR(i,l,r) for(int i = (int) (l);i < (int) (r);i++)
#define ALL(x) x.begin(),x.end()
template<typename T> bool chmax(T& a,const T& b){ return a < b ? (a = b,true) : false; }
template<typename T> bool chmin(T& a,const T& b){ return b < a ? (a = b,true) : false; }
typedef long long ll;

int N;
string S;
string T("YEAH!");

int main()
{
	cin >> S;
	N = S.size();

	FOR(i,0,T.size()){
		cout << count(ALL(S),T [i]) << (i == T.size() - 1 ? "\n" : " ");
	}

	return 0;
}
0