結果

問題 No.2707 Bag of Words Encryption
ユーザー ゆ
提出日時 2024-03-31 13:33:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 55 ms / 2,000 ms
コード長 666 bytes
コンパイル時間 164 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 70,068 KB
最終ジャッジ日時 2024-03-31 13:33:34
合計ジャッジ時間 1,782 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
55,628 KB
testcase_01 AC 43 ms
55,628 KB
testcase_02 AC 53 ms
68,020 KB
testcase_03 AC 47 ms
61,824 KB
testcase_04 AC 52 ms
68,020 KB
testcase_05 AC 50 ms
63,924 KB
testcase_06 AC 55 ms
65,972 KB
testcase_07 AC 55 ms
70,068 KB
testcase_08 AC 53 ms
68,020 KB
testcase_09 AC 55 ms
70,068 KB
testcase_10 AC 54 ms
68,020 KB
testcase_11 AC 53 ms
68,020 KB
testcase_12 AC 55 ms
70,068 KB
testcase_13 AC 53 ms
70,068 KB
testcase_14 AC 54 ms
70,068 KB
testcase_15 AC 54 ms
70,068 KB
testcase_16 AC 54 ms
70,068 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# oj t -c "python3 main.py"
import sys,math
from collections import defaultdict,deque
from itertools import combinations,permutations,accumulate,product
from bisect import bisect,bisect_left,bisect_right
from heapq import heappop,heappush,heapify
#from sortedcontainers import SortedList,SortedSet
def input(): return sys.stdin.readline().rstrip()
def ii(): return int(input())
def ms(): return map(int, input().split())
def li(): return list(map(int,input().split()))
inf = pow(10,18)
#////////////////////////////////////
N = ii()
S = input()
cnt = defaultdict(int)
for s in S:
  cnt[s] += 1
alp = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
for a in alp:
  print(cnt[a],end='')
0