結果

問題 No.2707 Bag of Words Encryption
ユーザー suakii
提出日時 2024-09-23 14:20:34
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 30 ms / 2,000 ms
コード長 301 bytes
コンパイル時間 4,314 ms
コンパイル使用メモリ 57,788 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-23 14:24:59
合計ジャッジ時間 8,938 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
using namespace std;
int n; 
string s;
int v[26];

int main() {
    cin >> n;
    cin >> s;

    for (int i = 0; i < n; i++) {
        v[s[i]-'A']++;
    }
    
    for (int i = 0; i < 26; i++) {
        cout << v[i];
    }
    cout << endl;


    return 0;
}
0