結果
問題 |
No.1729 ~サンプルはちゃんと見て!~ 16進数と8進数(1)
|
ユーザー |
|
提出日時 | 2021-11-05 23:23:05 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 422 bytes |
コンパイル時間 | 314 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-06 14:34:10 |
合計ジャッジ時間 | 1,656 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 WA * 8 |
ソースコード
n = int(input(),16) oct_n = str(oct(n)) n_list = [0,1,2,3,4,5,6,7] n_count_list =[] for i in n_list: x = oct_n.count(str(i)) n_count_list.append(x) count_num_list =[[a,b] for a,b in zip(n_count_list,n_list)] count_num_list.sort(reverse=True) ans = [count_num_list[0][1]] for j in range(1,8): if count_num_list[0][0]==count_num_list[j][0]: ans.append(count_num_list[j][1]) ans.sort() print(*ans,sep=" ")