結果
| 問題 |
No.1729 ~サンプルはちゃんと見て!~ 16進数と8進数(1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-11-05 21:22:57 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 39 ms / 2,000 ms |
| コード長 | 279 bytes |
| コンパイル時間 | 209 ms |
| コンパイル使用メモリ | 82,296 KB |
| 実行使用メモリ | 53,660 KB |
| 最終ジャッジ日時 | 2024-11-06 12:06:19 |
| 合計ジャッジ時間 | 1,990 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 |
ソースコード
S = input()
l = "ABCDEF"
dic = {x:i for i,x in enumerate(l,10)}
num = 0
for s in S:
num *= 16
num += dic[s]
count = [0]*10
while num:
count[num%8] += 1
num //= 8
m = max(count)
ans = []
for i in range(10):
if count[i] == m:
ans.append(i)
print(*ans)