結果
| 問題 | No.2707 Bag of Words Encryption |
| コンテスト | |
| ユーザー |
yel_ow
|
| 提出日時 | 2025-05-02 13:16:24 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 497 bytes |
| 記録 | |
| コンパイル時間 | 1,991 ms |
| コンパイル使用メモリ | 331,680 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-10 10:22:30 |
| 合計ジャッジ時間 | 3,532 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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