結果
問題 | No.2707 Bag of Words Encryption |
ユーザー | うえこ |
提出日時 | 2024-03-31 13:32:58 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 269 bytes |
コンパイル時間 | 1,655 ms |
コンパイル使用メモリ | 168,100 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-09-30 18:01:05 |
合計ジャッジ時間 | 2,172 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 15 |
ソースコード
#include <bits/stdc++.h> using ll=long long; const long long INF=1LL<<60; int main(){ ll n; std::string s; std::cin >> n >> s; std::vector<ll>count(26); for(const auto&c:s)count[c-'A']++; for(auto&c:count)std::cout << c; std::cout << '\n'; }