結果
問題 |
No.2707 Bag of Words Encryption
|
ユーザー |
|
提出日時 | 2024-08-15 19:28:04 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 263 bytes |
コンパイル時間 | 682 ms |
コンパイル使用メモリ | 71,900 KB |
最終ジャッジ日時 | 2025-02-23 22:46:57 |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 15 |
ソースコード
#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; }