結果

問題 No.2707 Bag of Words Encryption
ユーザー Butterflv
提出日時 2024-04-18 08:39:32
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 65 ms / 2,000 ms
コード長 208 bytes
コンパイル時間 334 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 68,096 KB
最終ジャッジ日時 2024-10-10 01:54:56
合計ジャッジ時間 2,582 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict as dd
cap="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
N=int(input())
S=input()
cou=dd(int)
for i in range(N):
  cou[S[i]]+=1
for i in range(len(cap)):
  print(cou[cap[i]], end="")
print()
0