結果

問題 No.2707 Bag of Words Encryption
ユーザー ButterflvButterflv
提出日時 2024-04-18 08:39:32
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 65 ms / 2,000 ms
コード長 208 bytes
コンパイル時間 449 ms
コンパイル使用メモリ 82,284 KB
実行使用メモリ 68,352 KB
最終ジャッジ日時 2024-04-18 08:39:35
合計ジャッジ時間 2,398 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
53,248 KB
testcase_01 AC 41 ms
53,248 KB
testcase_02 AC 49 ms
65,920 KB
testcase_03 AC 45 ms
61,184 KB
testcase_04 AC 52 ms
66,304 KB
testcase_05 AC 47 ms
62,848 KB
testcase_06 AC 49 ms
65,280 KB
testcase_07 AC 53 ms
67,712 KB
testcase_08 AC 50 ms
67,328 KB
testcase_09 AC 56 ms
68,096 KB
testcase_10 AC 50 ms
67,328 KB
testcase_11 AC 49 ms
67,456 KB
testcase_12 AC 52 ms
67,968 KB
testcase_13 AC 50 ms
68,224 KB
testcase_14 AC 51 ms
68,352 KB
testcase_15 AC 51 ms
68,224 KB
testcase_16 AC 65 ms
68,352 KB
権限があれば一括ダウンロードができます

ソースコード

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