結果
| 問題 | No.2707 Bag of Words Encryption |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-03-31 13:38:39 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 65 ms / 2,000 ms |
| + 225µs | |
| コード長 | 218 bytes |
| 記録 | |
| コンパイル時間 | 229 ms |
| コンパイル使用メモリ | 95,816 KB |
| 実行使用メモリ | 83,072 KB |
| 最終ジャッジ日時 | 2026-09-06 21:50:23 |
| 合計ジャッジ時間 | 2,923 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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))