結果
問題 | No.1729 ~サンプルはちゃんと見て!~ 16進数と8進数(1) |
ユーザー |
![]() |
提出日時 | 2021-11-05 22:09:16 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 44 ms / 2,000 ms |
コード長 | 300 bytes |
コンパイル時間 | 305 ms |
コンパイル使用メモリ | 82,384 KB |
実行使用メモリ | 53,432 KB |
最終ジャッジ日時 | 2024-11-06 12:59:14 |
合計ジャッジ時間 | 2,135 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 |
ソースコード
n=int(input(),16) n8=oct(n) stn16=str(n) stn=str(n8) stn8=stn[2::] N8=[] N16=[] a=[] for j in range(0,10): N8.append(stn8.count(str(j))) for i, j in zip(range(0,10), N8): a.append((i,j)) maxi=max(N8) ans=[] for (i,j) in a: if j==maxi: ans.append(i) continue print(*ans)