結果
問題 | No.1729 ~サンプルはちゃんと見て!~ 16進数と8進数(1) |
ユーザー |
![]() |
提出日時 | 2021-11-05 21:26:12 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 42 ms / 2,000 ms |
コード長 | 264 bytes |
コンパイル時間 | 325 ms |
コンパイル使用メモリ | 82,052 KB |
実行使用メモリ | 55,720 KB |
最終ジャッジ日時 | 2024-11-06 12:08:31 |
合計ジャッジ時間 | 1,989 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 |
ソースコード
from collections import CounterN = int(input(), 16)S = oct(N)# print(S)C = Counter(list(str(S)[2:]))ct = 0ans = []for i in range(8):if ct < C[str(i)]:ans = [i]ct = C[str(i)]elif ct == C[str(i)]:ans.append(i)print(*ans)