結果
| 問題 |
No.2707 Bag of Words Encryption
|
| コンテスト | |
| ユーザー |
rurun
|
| 提出日時 | 2024-03-31 13:32:34 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 2,000 ms |
| コード長 | 266 bytes |
| コンパイル時間 | 1,971 ms |
| コンパイル使用メモリ | 193,912 KB |
| 最終ジャッジ日時 | 2025-02-20 16:15:41 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 15 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using lint = long long;
int main() {
int n;
string s;
cin >> n >> s;
vector<int> vec(26);
for (int i = 0; i < n; i++) {
vec[s[i]-'A']++;
}
for (int i = 0; i < 26; i++) cout << vec[i];
cout << endl;
}
rurun