結果

問題 No.1729 ~サンプルはちゃんと見て!~ 16進数と8進数(1)
ユーザー kept1994kept1994
提出日時 2022-04-28 18:31:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 96 ms / 2,000 ms
コード長 312 bytes
コンパイル時間 391 ms
コンパイル使用メモリ 86,964 KB
実行使用メモリ 71,856 KB
最終ジャッジ日時 2023-09-10 16:51:16
合計ジャッジ時間 3,967 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 90 ms
71,476 KB
testcase_01 AC 90 ms
71,428 KB
testcase_02 AC 92 ms
71,600 KB
testcase_03 AC 96 ms
71,420 KB
testcase_04 AC 91 ms
71,400 KB
testcase_05 AC 90 ms
71,720 KB
testcase_06 AC 91 ms
71,300 KB
testcase_07 AC 90 ms
71,684 KB
testcase_08 AC 90 ms
71,620 KB
testcase_09 AC 90 ms
71,756 KB
testcase_10 AC 91 ms
71,480 KB
testcase_11 AC 91 ms
71,680 KB
testcase_12 AC 90 ms
71,524 KB
testcase_13 AC 90 ms
71,492 KB
testcase_14 AC 90 ms
71,512 KB
testcase_15 AC 91 ms
71,488 KB
testcase_16 AC 89 ms
71,460 KB
testcase_17 AC 90 ms
71,856 KB
testcase_18 AC 90 ms
71,424 KB
testcase_19 AC 91 ms
71,420 KB
testcase_20 AC 91 ms
71,720 KB
testcase_21 AC 90 ms
71,404 KB
testcase_22 AC 90 ms
71,752 KB
testcase_23 AC 90 ms
71,492 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
from collections import Counter
import sys

MOD = 998244353

def main():
    N = int(input(), 16)
    oc = format(N, "o")
    c = Counter(list(oc))
    mx = max(c.values())
    print(*sorted([k for k, v in c.items() if v == mx]), sep=" ")
    return

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