結果
問題 |
No.2707 Bag of Words Encryption
|
ユーザー |
|
提出日時 | 2024-03-31 13:38:39 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 44 ms / 2,000 ms |
コード長 | 218 bytes |
コンパイル時間 | 170 ms |
コンパイル使用メモリ | 82,320 KB |
実行使用メモリ | 61,440 KB |
最終ジャッジ日時 | 2024-09-30 18:10:52 |
合計ジャッジ時間 | 1,552 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 15 |
ソースコード
def solve(N, S): counts = [0]*26 for c in S: counts[ord(c) - ord('A')] += 1 X = '' for i in range(26): X += str(counts[i]) return X N = int(input()) S = input() print(solve(N, S))