結果
| 問題 | No.2707 Bag of Words Encryption |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-03-31 13:38:26 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 49 ms / 2,000 ms |
| コード長 | 519 bytes |
| 記録 | |
| コンパイル時間 | 425 ms |
| コンパイル使用メモリ | 85,248 KB |
| 実行使用メモリ | 74,752 KB |
| 最終ジャッジ日時 | 2026-04-16 20:13:27 |
| 合計ジャッジ時間 | 2,000 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 15 |
ソースコード
# 標準入力された値を整数に変換する
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))