結果

問題 No.1729 ~サンプルはちゃんと見て!~ 16進数と8進数(1)
ユーザー H20H20
提出日時 2021-10-08 00:43:19
言語 PyPy3
(7.9.16)
結果
AC  
実行時間 105 ms / 2,000 ms
コード長 230 bytes
コンパイル時間 638 ms
使用メモリ 76,164 KB
最終ジャッジ日時 2022-12-12 13:45:20
合計ジャッジ時間 4,467 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 103 ms
75,800 KB
testcase_01 AC 101 ms
75,984 KB
testcase_02 AC 103 ms
76,152 KB
testcase_03 AC 105 ms
76,080 KB
testcase_04 AC 104 ms
75,780 KB
testcase_05 AC 105 ms
75,984 KB
testcase_06 AC 103 ms
75,640 KB
testcase_07 AC 101 ms
75,804 KB
testcase_08 AC 104 ms
76,084 KB
testcase_09 AC 103 ms
76,044 KB
testcase_10 AC 102 ms
76,088 KB
testcase_11 AC 100 ms
76,048 KB
testcase_12 AC 100 ms
76,164 KB
testcase_13 AC 100 ms
75,964 KB
testcase_14 AC 104 ms
76,076 KB
testcase_15 AC 104 ms
75,904 KB
testcase_16 AC 104 ms
76,064 KB
testcase_17 AC 101 ms
76,044 KB
testcase_18 AC 102 ms
75,684 KB
testcase_19 AC 101 ms
75,804 KB
testcase_20 AC 100 ms
75,964 KB
testcase_21 AC 100 ms
76,088 KB
testcase_22 AC 102 ms
75,964 KB
testcase_23 AC 102 ms
75,996 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections
N = input()
O = list(format(int(N, 16),'o'))
C = collections.Counter(O)
CNT = [0]*8
for k,v in C.items():
    CNT[int(k)]=v
ANS = []
for i in range(8):
    if CNT[i]==max(CNT):
        ANS.append(i)
print(*ANS)
0