結果
| 問題 |
No.2707 Bag of Words Encryption
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-03-31 13:38:26 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 76 ms / 2,000 ms |
| コード長 | 519 bytes |
| コンパイル時間 | 317 ms |
| コンパイル使用メモリ | 81,972 KB |
| 実行使用メモリ | 74,624 KB |
| 最終ジャッジ日時 | 2024-09-30 18:10:46 |
| 合計ジャッジ時間 | 2,163 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 15 |
ソースコード
# 標準入力された値を整数に変換する
def INT():
return int(input())
# 標準入力された複数の値を整数に変換する
def MI():
return map(int, input().split())
# 標準入力された複数の値を整数のリストに変換する
def LI():
return list(map(int, input().split()))
from string import ascii_uppercase
from collections import Counter
N = INT()
S = list(input())
Cs = Counter(S)
ans = []
for s in ascii_uppercase:
ans.append(str(Cs[s]))
print("".join(ans))