結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,460 KB
testcase_01 AC 37 ms
53,460 KB
testcase_02 AC 47 ms
64,660 KB
testcase_03 AC 41 ms
59,328 KB
testcase_04 AC 44 ms
64,692 KB
testcase_05 AC 43 ms
62,008 KB
testcase_06 AC 43 ms
64,532 KB
testcase_07 AC 44 ms
67,052 KB
testcase_08 AC 43 ms
64,908 KB
testcase_09 AC 46 ms
67,068 KB
testcase_10 AC 44 ms
66,972 KB
testcase_11 AC 47 ms
66,964 KB
testcase_12 AC 45 ms
67,108 KB
testcase_13 AC 45 ms
67,108 KB
testcase_14 AC 44 ms
67,108 KB
testcase_15 AC 44 ms
67,108 KB
testcase_16 AC 44 ms
67,108 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
S=list(input())

cnt=[0 for _ in range(26)]

for s in S:
    cnt[ord(s)-ord("A")]+=1

ans=""
for i in range(26):
    ans+=str(cnt[i])
print(ans)
0