結果
問題 | No.2707 Bag of Words Encryption |
ユーザー |
|
提出日時 | 2024-08-09 17:44:01 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 51 ms / 2,000 ms |
コード長 | 186 bytes |
コンパイル時間 | 591 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 66,560 KB |
最終ジャッジ日時 | 2024-08-09 17:44:04 |
合計ジャッジ時間 | 2,314 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 15 |
ソースコード
n=input() s=input() d=dict() for e in s: if e not in d: d[e]=1 else: d[e]+=1 ans="" for i in range(26): x=chr(ord("A")+i) if x in d: ans+=str(d[x]) else: ans+="0" print(ans)