結果
| 問題 | No.1729 ~サンプルはちゃんと見て!~ 16進数と8進数(1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-03-16 10:42:50 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 270 bytes |
| 記録 | |
| コンパイル時間 | 350 ms |
| コンパイル使用メモリ | 84,864 KB |
| 実行使用メモリ | 55,640 KB |
| 最終ジャッジ日時 | 2026-04-11 12:34:14 |
| 合計ジャッジ時間 | 2,067 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 18 WA * 6 |
ソースコード
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_cnt = max(count.values())
for i in count:
if max_cnt == count[i]:
print(i,end=' ')