結果
問題 |
No.1729 ~サンプルはちゃんと見て!~ 16進数と8進数(1)
|
ユーザー |
|
提出日時 | 2021-11-07 12:14:16 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 49 ms / 2,000 ms |
コード長 | 221 bytes |
コンパイル時間 | 313 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 53,760 KB |
最終ジャッジ日時 | 2024-11-09 00:29:21 |
合計ジャッジ時間 | 2,390 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 |
ソースコード
from collections import Counter N = int(input(), base=16) count = Counter(oct(N)[2:]) ans = [] max_count = max(count.values()) for i in map(str, range(8)): if count[i] == max_count: ans.append(i) print(*ans)