結果
| 問題 | No.1729 ~サンプルはちゃんと見て!~ 16進数と8進数(1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-03-16 10:44:56 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 35 ms / 2,000 ms |
| + 160µs | |
| コード長 | 314 bytes |
| 記録 | |
| コンパイル時間 | 83 ms |
| コンパイル使用メモリ | 64,748 KB |
| 実行使用メモリ | 53,956 KB |
| 最終ジャッジ日時 | 2026-10-15 06:17:29 |
| 合計ジャッジ時間 | 2,471 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 |
ソースコード
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))