結果

問題 No.8020 サンシャイン◯崎
ユーザー a01sa01to
提出日時 2024-07-19 01:03:54
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 4 ms / 1,000 ms
コード長 467 bytes
コンパイル時間 2,945 ms
コンパイル使用メモリ 253,720 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-19 01:03:58
合計ジャッジ時間 3,764 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
  #include "settings/debug.cpp"
  #define _GLIBCXX_DEBUG
#else
  #define Debug(...) void(0)
#endif
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using ull = unsigned long long;

int main() {
  string s;
  cin >> s;
  map<char, int> cnt;
  for (char c : s) cnt[c]++;
  cout << cnt['Y'] << ' ' << cnt['E'] << ' ' << cnt['A'] << ' ' << cnt['H'] << ' ' << cnt['!'] << endl;
  return 0;
}
0