結果
| 問題 | No.1729 ~サンプルはちゃんと見て!~ 16進数と8進数(1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-11-07 12:14:16 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 26 ms / 2,000 ms |
| + 901µs | |
| コード長 | 221 bytes |
| 記録 | |
| コンパイル時間 | 288 ms |
| コンパイル使用メモリ | 81,836 KB |
| 実行使用メモリ | 57,956 KB |
| 最終ジャッジ日時 | 2026-09-21 15:13:29 |
| 合計ジャッジ時間 | 2,709 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)