結果
| 問題 | No.2707 Bag of Words Encryption |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-04-07 13:18:23 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 258 bytes |
| 記録 | |
| コンパイル時間 | 1,457 ms |
| コンパイル使用メモリ | 161,292 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-17 04:20:40 |
| 合計ジャッジ時間 | 2,072 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 15 |
ソースコード
#include<iostream>
#include<vector>
using namespace std;
int main() {
int N; cin >> N;
string S; cin >> S;
vector<int> alp(26);
for (int i = 0; i < N; i++) {
alp[S[i] - 'A']++;
}
for (int i = 0; i < 26; i++) {
cout << alp[i];
}
cout << endl;
}