結果

問題 No.1729 ~サンプルはちゃんと見て!~ 16進数と8進数(1)
コンテスト
ユーザー harapeco
提出日時 2022-03-16 10:44:56
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 29 ms / 2,000 ms
コード長 314 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 115 ms
コンパイル使用メモリ 84,980 KB
実行使用メモリ 55,304 KB
最終ジャッジ日時 2026-04-11 12:35:11
合計ジャッジ時間 1,742 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

from collections import Counter as cnt

ten = int(input(),16)
eight = []
st = ''.join(format(ten,'o'))
for i in range(len(st)):
    eight.append(st[i])

count = cnt(eight)
max_value = []
max_cnt = max(count.values())
for i in count:
    if max_cnt == count[i]:
        max_value.append(i)
print(*sorted(max_value))
0