結果
| 問題 |
No.8020 サンシャイン◯崎
|
| コンテスト | |
| ユーザー |
w2w2
|
| 提出日時 | 2020-07-23 08:44:28 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 1,000 ms |
| コード長 | 1,194 bytes |
| コンパイル時間 | 1,745 ms |
| コンパイル使用メモリ | 170,104 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-23 16:45:42 |
| 合計ジャッジ時間 | 2,506 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
using P = pair<ll,ll>;
const ll mod = 1e9+7;
#define ALL(x) (x).begin(),(x).end()
#define REP(i,n) for(ll (i)=0;(i)<(n);(i)++)
#define REPS(i,n) for(ll (i)=1;(i)<=(n);(i)++)
#define RREP(i,n) for(ll (i)=(n-1);(i)>=0;(i)--)
#define RREPS(i,n) for(ll (i)=(n);(i)>0;(i)--)
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define UNIQUE(v) v.erase(unique(ALL(v)),v.end());
template<class T> inline void chmin(T& a, T b){
if (a > b){
a = b;
}
}
template<class T> inline void chmax(T& a, T b){
if (a < b){
a = b;
}
}
signed main(){
cin.tie(0);
ios::sync_with_stdio(false);
cout<<fixed<<setprecision(12);
string S;
cin >> S;
sort(ALL(S));
ll Y = 0,E = 0,A = 0,H = 0,EX = 0;
REP(i,S.size()){
if(S[i] == 'Y'){
Y++;
}else if(S[i] == 'E'){
E++;
}else if(S[i] == 'A'){
A++;
}else if(S[i] == 'H'){
H++;
}else if(S[i] == '!'){
EX++;
}
}
cout << Y << " " << E << " " << A << " " << H << " " << EX << "\n";
}
w2w2