結果
問題 | No.2707 Bag of Words Encryption |
ユーザー |
|
提出日時 | 2024-04-07 13:18:23 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 5 ms / 2,000 ms |
コード長 | 258 bytes |
コンパイル時間 | 893 ms |
コンパイル使用メモリ | 87,292 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-01 04:27:19 |
合計ジャッジ時間 | 1,604 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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; }