結果
問題 |
No.2707 Bag of Words Encryption
|
ユーザー |
![]() |
提出日時 | 2024-03-31 13:34:32 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 5 ms / 2,000 ms |
コード長 | 368 bytes |
コンパイル時間 | 4,176 ms |
コンパイル使用メモリ | 251,756 KB |
最終ジャッジ日時 | 2025-02-20 16:19:36 |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 15 |
ソースコード
#include <bits/stdc++.h> #include <atcoder/all> using namespace std; using namespace atcoder; using ll = long long; int main() { ll N; cin >> N; string S; cin >> S; vector<ll> c(26); for (ll i = 0; i < N; i++) { c[S[i] - 'A']++; } for (ll i = 0; i < 26; i++) { cout << c[i]; } cout << endl; return 0; }