結果

問題 No.1729 ~サンプルはちゃんと見て!~ 16進数と8進数(1)
ユーザー MasKoaTSMasKoaTS
提出日時 2021-11-06 13:20:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 218 ms / 2,000 ms
コード長 835 bytes
コンパイル時間 287 ms
コンパイル使用メモリ 87,168 KB
実行使用メモリ 83,084 KB
最終ジャッジ日時 2023-08-07 05:58:40
合計ジャッジ時間 7,167 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 209 ms
82,816 KB
testcase_01 AC 217 ms
82,988 KB
testcase_02 AC 214 ms
82,960 KB
testcase_03 AC 218 ms
82,924 KB
testcase_04 AC 213 ms
82,864 KB
testcase_05 AC 212 ms
83,084 KB
testcase_06 AC 212 ms
83,040 KB
testcase_07 AC 213 ms
83,040 KB
testcase_08 AC 218 ms
82,788 KB
testcase_09 AC 216 ms
82,944 KB
testcase_10 AC 215 ms
82,940 KB
testcase_11 AC 214 ms
82,896 KB
testcase_12 AC 214 ms
82,932 KB
testcase_13 AC 211 ms
83,000 KB
testcase_14 AC 214 ms
82,952 KB
testcase_15 AC 212 ms
82,916 KB
testcase_16 AC 214 ms
82,888 KB
testcase_17 AC 215 ms
82,812 KB
testcase_18 AC 215 ms
82,812 KB
testcase_19 AC 216 ms
82,944 KB
testcase_20 AC 216 ms
82,988 KB
testcase_21 AC 211 ms
82,956 KB
testcase_22 AC 214 ms
82,908 KB
testcase_23 AC 216 ms
82,992 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools as iter
import collections as coll
import heapq as hq
import bisect as bis
from decimal import Decimal as dec
from copy import deepcopy as dcopy
import math
import sys
sys.setrecursionlimit(10**6)
def input():
    return sys.stdin.readline().rstrip()
def getN():
	return int(sys.stdin.readline())
def getNs():
	return map(int,sys.stdin.readline().split())
def getList():
	return list(map(int,sys.stdin.readline().split()))
def strinps(n):
	return [sys.stdin.readline().rstrip() for _ in range(n)]
pi = 3.141592653589793
mod = 10**9+7
MOD = 998244353
INF = math.inf
dx = [1,0,-1,0];	dy = [0,1,0,-1]


"""
Main Code
"""

n = int(input(),base = 16)
t = format(n,'o')
c = coll.Counter(t)
l = -1
ans = []
for k in c.most_common():
	if(l != -1 and k[1] != l):
		break
	l = k[1]
	ans.append(int(k[0]))
ans.sort()
print(*ans)
0