結果

問題 No.1729 ~サンプルはちゃんと見て!~ 16進数と8進数(1)
ユーザー kaeru82433413kaeru82433413
提出日時 2021-11-07 12:14:16
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 44 ms / 2,000 ms
コード長 221 bytes
コンパイル時間 793 ms
コンパイル使用メモリ 82,340 KB
実行使用メモリ 55,328 KB
最終ジャッジ日時 2024-04-26 10:01:35
合計ジャッジ時間 2,071 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
55,328 KB
testcase_01 AC 41 ms
53,368 KB
testcase_02 AC 39 ms
54,296 KB
testcase_03 AC 39 ms
54,352 KB
testcase_04 AC 43 ms
53,852 KB
testcase_05 AC 43 ms
53,656 KB
testcase_06 AC 42 ms
54,376 KB
testcase_07 AC 41 ms
54,296 KB
testcase_08 AC 43 ms
54,572 KB
testcase_09 AC 44 ms
53,764 KB
testcase_10 AC 41 ms
53,896 KB
testcase_11 AC 41 ms
54,244 KB
testcase_12 AC 41 ms
54,644 KB
testcase_13 AC 41 ms
54,332 KB
testcase_14 AC 42 ms
54,576 KB
testcase_15 AC 43 ms
53,664 KB
testcase_16 AC 40 ms
55,096 KB
testcase_17 AC 42 ms
54,480 KB
testcase_18 AC 41 ms
54,640 KB
testcase_19 AC 41 ms
54,308 KB
testcase_20 AC 41 ms
54,260 KB
testcase_21 AC 40 ms
55,096 KB
testcase_22 AC 41 ms
53,656 KB
testcase_23 AC 42 ms
53,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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)
0