結果

問題 No.2707 Bag of Words Encryption
ユーザー Nafmo2
提出日時 2024-01-22 16:16:27
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 4 ms / 2,000 ms
コード長 264 bytes
コンパイル時間 559 ms
コンパイル使用メモリ 71,776 KB
最終ジャッジ日時 2025-02-18 22:05:39
ジャッジサーバーID
(参考情報)
judge4 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
  int N;
  string S;
  cin >> N >> S;
  vector<int> v(26);
  for (int i = 0; i < N; i++) {
    v[S[i] - 'A']++;
  }
  for (auto x : v) {
    cout << x;
  }
  cout << endl;
}
0