結果

問題 No.1729 ~サンプルはちゃんと見て!~ 16進数と8進数(1)
ユーザー googol_S0googol_S0
提出日時 2021-11-05 21:22:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 41 ms / 2,000 ms
コード長 158 bytes
コンパイル時間 301 ms
コンパイル使用メモリ 82,736 KB
実行使用メモリ 53,672 KB
最終ジャッジ日時 2024-04-24 05:10:19
合計ジャッジ時間 2,100 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
52,252 KB
testcase_01 AC 41 ms
52,128 KB
testcase_02 AC 41 ms
52,344 KB
testcase_03 AC 41 ms
53,228 KB
testcase_04 AC 40 ms
52,404 KB
testcase_05 AC 38 ms
52,492 KB
testcase_06 AC 39 ms
52,740 KB
testcase_07 AC 38 ms
52,332 KB
testcase_08 AC 41 ms
52,832 KB
testcase_09 AC 38 ms
52,948 KB
testcase_10 AC 38 ms
52,004 KB
testcase_11 AC 39 ms
53,088 KB
testcase_12 AC 39 ms
53,196 KB
testcase_13 AC 41 ms
52,596 KB
testcase_14 AC 37 ms
53,056 KB
testcase_15 AC 37 ms
52,476 KB
testcase_16 AC 38 ms
53,504 KB
testcase_17 AC 40 ms
52,684 KB
testcase_18 AC 38 ms
53,568 KB
testcase_19 AC 38 ms
52,344 KB
testcase_20 AC 38 ms
52,436 KB
testcase_21 AC 37 ms
53,672 KB
testcase_22 AC 38 ms
52,740 KB
testcase_23 AC 39 ms
52,504 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=str(oct(int(input(),16)))
X=[0]*8
for i in range(2,len(N)):
  X[int(N[i])]+=1
Y=max(X)
ANS=[]
for i in range(8):
  if X[i]==Y:
    ANS.append(i)
print(*ANS)
0