結果
| 問題 | No.2707 Bag of Words Encryption | 
| コンテスト | |
| ユーザー |  rotti_coder | 
| 提出日時 | 2024-03-31 13:33:42 | 
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 5 ms / 2,000 ms | 
| コード長 | 232 bytes | 
| コンパイル時間 | 645 ms | 
| コンパイル使用メモリ | 71,644 KB | 
| 最終ジャッジ日時 | 2025-02-20 16:18:31 | 
| ジャッジサーバーID (参考情報) | judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 15 | 
ソースコード
#include<iostream>
#include<vector>
using namespace std;
int main()
{
  vector<int>ans(26,0);
  int n;
  string s;
  cin >> n >> s;
  for(int i=0;i<n;i++)ans[(int)s[i]-65]++;
  for(int i=0;i<26;i++)cout << ans[i];
  cout << endl;
}
            
            
            
        