結果

問題 No.1729 ~サンプルはちゃんと見て!~ 16進数と8進数(1)
ユーザー pluto77pluto77
提出日時 2021-11-09 10:30:42
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
実行時間 -
コード長 228 bytes
コンパイル時間 148 ms
コンパイル使用メモリ 10,648 KB
実行使用メモリ 8,544 KB
最終ジャッジ日時 2023-08-11 08:51:55
合計ジャッジ時間 1,977 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
8,300 KB
testcase_01 AC 19 ms
8,332 KB
testcase_02 AC 18 ms
8,372 KB
testcase_03 AC 18 ms
8,400 KB
testcase_04 AC 18 ms
8,436 KB
testcase_05 AC 18 ms
8,308 KB
testcase_06 AC 18 ms
8,396 KB
testcase_07 WA -
testcase_08 AC 18 ms
8,380 KB
testcase_09 AC 18 ms
8,372 KB
testcase_10 AC 18 ms
8,356 KB
testcase_11 AC 18 ms
8,472 KB
testcase_12 AC 18 ms
8,312 KB
testcase_13 AC 18 ms
8,304 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 18 ms
8,360 KB
testcase_20 AC 18 ms
8,372 KB
testcase_21 AC 18 ms
8,412 KB
testcase_22 AC 18 ms
8,408 KB
testcase_23 AC 18 ms
8,340 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki1729
import collections
import itertools
n=input()
x=oct(int(n,16))
x=x[2:]
c=collections.Counter(x)
mode_v=c.most_common()[0][-1]
it=itertools.takewhile(lambda kv: kv[-1]==mode_v,c.most_common())
print(*(k for k,v in it))
0