結果
| 問題 | No.2707 Bag of Words Encryption |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-03-31 13:37:02 |
| 言語 | C++23 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 2 ms / 2,000 ms |
| + 580µs | |
| コード長 | 683 bytes |
| 記録 | |
| コンパイル時間 | 1,918 ms |
| コンパイル使用メモリ | 332,072 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-09-06 21:49:04 |
| 合計ジャッジ時間 | 3,057 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 15 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i = 0;i < n;i++)
template<class T> bool chmin(T &a,T b){
if(a>b){a = b;return true;}
return false;
}
template<class T> bool chmax(T &a,T b){
if(a<b){a = b;return true;}
return false;
}
using ll = long long;
using ld = long double;
const int INF = 1e9+5;
// const int mod = 1000000007;
const int mod = 998244353;
void no(){
cout << "No" << endl;exit(0);
}
void yes(){
cout << "Yes" << endl; exit(0);
}
#define all(x) x.begin(),x.end()
int main(){
int N;string S;cin >> N >> S;
vector<int>cnt(26,0);
for(auto c:S)cnt[c-'A']++;
rep(i,26)cout << cnt[i];
cout << endl;
}