結果

問題 No.2707 Bag of Words Encryption
コンテスト
ユーザー けん
提出日時 2024-11-01 20:01:53
言語 PyPy3
(7.3.23 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 33 ms / 2,000 ms
+ 56µs
コード長 202 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 75 ms
コンパイル使用メモリ 80,512 KB
実行使用メモリ 67,072 KB
最終ジャッジ日時 2026-09-19 08:28:55
合計ジャッジ時間 2,051 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**8)

N = int(input())
S = input()[:-1]

cnt = [0] * 26

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

print("".join([str(c) for c in cnt]))
0