結果

問題 No.2707 Bag of Words Encryption
ユーザー hanagehanage
提出日時 2024-03-31 13:36:06
言語 C++17(gcc12)
(gcc 12.3.0 + boost 1.87.0)
結果
AC  
実行時間 4 ms / 2,000 ms
コード長 296 bytes
コンパイル時間 2,206 ms
コンパイル使用メモリ 201,504 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-09-30 18:08:36
合計ジャッジ時間 2,777 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main() {
  int N;
  cin >> N;
  string S;
  cin >> S;
  vector<int> c(26);
  for (int i = 0; i < S.size(); i++) {
    c[S[i] - 'A']++;
  }
  for (int i = 0; i < 26; i++) {
    cout << c[i];
  }
  cout << endl;
  return 0;
}
0