結果
| 問題 | No.2707 Bag of Words Encryption |
| コンテスト | |
| ユーザー |
yel_ow
|
| 提出日時 | 2025-05-02 13:16:24 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 5 ms / 2,000 ms |
| コード長 | 497 bytes |
| 記録 | |
| コンパイル時間 | 3,435 ms |
| コンパイル使用メモリ | 274,540 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2025-05-02 13:16:29 |
| 合計ジャッジ時間 | 4,873 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 15 |
ソースコード
//#include <monsterenergy>
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
const int MAX = 1e9;
const int MIN = -1*1e9;
const ll MAXLL = 1e18;
const ll MINLL = -1*1e18;
int main()
{
int N; cin >> N;
string S; cin >> S;
vector<int> V(1000);
for(int i = 0; i < N; i++)
{
V[S[i]]++;
}
for(int i = 'A'; i <= 'Z'; i++) cout << V[i];
cout << endl;
return 0;
}
yel_ow