結果
問題 | No.2707 Bag of Words Encryption |
ユーザー |
|
提出日時 | 2024-03-31 13:47:08 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 337 bytes |
コンパイル時間 | 3,326 ms |
コンパイル使用メモリ | 228,812 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-09-30 18:23:37 |
合計ジャッジ時間 | 3,954 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 15 |
ソースコード
#include<bits/stdc++.h> using namespace std; #include <atcoder/all> using mint = atcoder::modint998244353; #define int long long signed main() { int n; string s; cin >> n >> s; vector<int> c(26,0); for(int i = 0; i < n; i++) { int f = s[i]-'A'; c[f]++; } for(int i = 0; i < 26; i++) cout << c[i]; cout << endl; }