結果

問題 No.2707 Bag of Words Encryption
ユーザー ななな
提出日時 2024-03-31 14:17:01
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 8 ms / 2,000 ms
コード長 294 bytes
コンパイル時間 1,721 ms
コンパイル使用メモリ 174,292 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-09-30 19:16:50
合計ジャッジ時間 2,385 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

#include "bits/stdc++.h"
using namespace std;
#define int long long
#define rep(i, n) for (int i = 0; i < n; i++)
signed main() {
  int n;
  string s;
  cin >> n >> s;
  map<char, int> mp;
  rep(i, s.size()) { mp[s[i]]++; }
  for (int i = 0; i < 26; i++) {
    cout << mp[char('A' + i)];
  }
}
0