結果
| 問題 | No.2707 Bag of Words Encryption |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-03-31 13:49:14 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 83 ms / 2,000 ms |
| + 909µs | |
| コード長 | 243 bytes |
| 記録 | |
| コンパイル時間 | 232 ms |
| コンパイル使用メモリ | 96,076 KB |
| 実行使用メモリ | 84,480 KB |
| 最終ジャッジ日時 | 2026-09-06 22:03:09 |
| 合計ジャッジ時間 | 3,339 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 15 |
ソースコード
from collections import defaultdict
import sys
input = sys.stdin.readline
N = int(input())
S = input().strip()
C = defaultdict(int)
for s in S:
C[s] += 1
ans = ""
for i in range(26):
c = chr(ord('A')+i)
ans += str(C[c])
print(ans)