結果

問題 No.1729 ~サンプルはちゃんと見て!~ 16進数と8進数(1)
ユーザー 👑 hiragnhiragn
提出日時 2022-11-25 00:14:00
言語 Python3
(3.11.2 + numpy 1.24.2 + scipy 1.10.1)
結果
AC  
実行時間 18 ms / 2,000 ms
コード長 234 bytes
コンパイル時間 70 ms
コンパイル使用メモリ 10,704 KB
実行使用メモリ 8,496 KB
最終ジャッジ日時 2023-07-24 17:12:08
合計ジャッジ時間 1,482 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
8,328 KB
testcase_01 AC 17 ms
8,496 KB
testcase_02 AC 16 ms
8,388 KB
testcase_03 AC 16 ms
8,308 KB
testcase_04 AC 16 ms
8,384 KB
testcase_05 AC 16 ms
8,380 KB
testcase_06 AC 16 ms
8,444 KB
testcase_07 AC 16 ms
8,492 KB
testcase_08 AC 16 ms
8,340 KB
testcase_09 AC 15 ms
8,336 KB
testcase_10 AC 16 ms
8,260 KB
testcase_11 AC 16 ms
8,268 KB
testcase_12 AC 16 ms
8,268 KB
testcase_13 AC 17 ms
8,320 KB
testcase_14 AC 16 ms
8,444 KB
testcase_15 AC 17 ms
8,324 KB
testcase_16 AC 15 ms
8,344 KB
testcase_17 AC 16 ms
8,308 KB
testcase_18 AC 16 ms
8,320 KB
testcase_19 AC 16 ms
8,324 KB
testcase_20 AC 16 ms
8,376 KB
testcase_21 AC 15 ms
8,328 KB
testcase_22 AC 15 ms
8,344 KB
testcase_23 AC 16 ms
8,332 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter


def main():
    n = input()

    n = oct(int(n, 16))[2:]
    c = Counter(n)
    ans = sorted([k for k, v in c.items() if v == max(c.values())])
    print(*ans)


if __name__ == "__main__":
    main()
0