結果

問題 No.2707 Bag of Words Encryption
ユーザー RYOH2718RYOH2718
提出日時 2024-03-31 13:38:26
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 73 ms / 2,000 ms
コード長 519 bytes
コンパイル時間 206 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 74,020 KB
最終ジャッジ日時 2024-03-31 13:38:33
合計ジャッジ時間 2,028 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
63,656 KB
testcase_01 AC 57 ms
63,656 KB
testcase_02 AC 66 ms
73,620 KB
testcase_03 AC 59 ms
66,292 KB
testcase_04 AC 64 ms
73,652 KB
testcase_05 AC 64 ms
68,916 KB
testcase_06 AC 63 ms
71,444 KB
testcase_07 AC 73 ms
73,964 KB
testcase_08 AC 66 ms
73,868 KB
testcase_09 AC 65 ms
73,980 KB
testcase_10 AC 64 ms
73,884 KB
testcase_11 AC 65 ms
73,876 KB
testcase_12 AC 66 ms
74,020 KB
testcase_13 AC 65 ms
74,020 KB
testcase_14 AC 66 ms
74,020 KB
testcase_15 AC 66 ms
74,020 KB
testcase_16 AC 69 ms
74,020 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# 標準入力された値を整数に変換する
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))
0