結果

問題 No.2087 基数の変換
ユーザー DrDrpilotDrDrpilot
提出日時 2022-10-07 17:22:33
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 138 ms / 2,000 ms
コード長 804 bytes
コンパイル時間 340 ms
コンパイル使用メモリ 86,904 KB
実行使用メモリ 77,696 KB
最終ジャッジ日時 2023-09-02 17:55:37
合計ジャッジ時間 8,982 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 137 ms
77,480 KB
testcase_01 AC 138 ms
77,192 KB
testcase_02 AC 133 ms
77,156 KB
testcase_03 AC 129 ms
77,344 KB
testcase_04 AC 131 ms
77,364 KB
testcase_05 AC 130 ms
77,696 KB
testcase_06 AC 131 ms
77,288 KB
testcase_07 AC 130 ms
77,080 KB
testcase_08 AC 132 ms
77,464 KB
testcase_09 AC 131 ms
77,368 KB
testcase_10 AC 131 ms
77,292 KB
testcase_11 AC 133 ms
77,488 KB
testcase_12 AC 134 ms
77,276 KB
testcase_13 AC 133 ms
77,084 KB
testcase_14 AC 133 ms
77,356 KB
testcase_15 AC 133 ms
77,156 KB
testcase_16 AC 131 ms
77,092 KB
testcase_17 AC 132 ms
77,492 KB
testcase_18 AC 130 ms
77,404 KB
testcase_19 AC 131 ms
77,576 KB
testcase_20 AC 131 ms
77,268 KB
testcase_21 AC 132 ms
77,492 KB
testcase_22 AC 131 ms
77,156 KB
testcase_23 AC 129 ms
77,084 KB
testcase_24 AC 131 ms
77,360 KB
testcase_25 AC 131 ms
77,440 KB
testcase_26 AC 132 ms
77,440 KB
testcase_27 AC 132 ms
77,280 KB
testcase_28 AC 136 ms
77,696 KB
testcase_29 AC 130 ms
77,420 KB
testcase_30 AC 134 ms
77,436 KB
testcase_31 AC 134 ms
77,296 KB
testcase_32 AC 134 ms
77,656 KB
testcase_33 AC 130 ms
77,024 KB
testcase_34 AC 131 ms
77,580 KB
testcase_35 AC 132 ms
77,372 KB
testcase_36 AC 131 ms
77,184 KB
testcase_37 AC 132 ms
77,592 KB
testcase_38 AC 133 ms
77,436 KB
testcase_39 AC 131 ms
77,320 KB
testcase_40 AC 133 ms
77,152 KB
testcase_41 AC 130 ms
77,548 KB
testcase_42 AC 130 ms
77,160 KB
testcase_43 AC 130 ms
77,520 KB
testcase_44 AC 131 ms
77,440 KB
testcase_45 AC 131 ms
77,356 KB
testcase_46 AC 130 ms
77,476 KB
testcase_47 AC 130 ms
77,488 KB
testcase_48 AC 129 ms
77,444 KB
testcase_49 AC 131 ms
77,336 KB
testcase_50 AC 131 ms
77,280 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def I():return int(input())
def MAP():return map(int,input().split())
def MAPs():return map(str,input().split())
def LI(): return list(map(int,input().split()))
def TPL(): return tuple(map(int,input().split()))
def S():return input()
from collections import defaultdict,Counter,deque
from copy import deepcopy
from heapq import heapify,heappop,heappush
from bisect import bisect_left,bisect_right
from itertools import accumulate,product,permutations,combinations,combinations_with_replacement
from math import gcd,ceil,floor,factorial,sqrt,pi,sin,cos,tan,radians,exp
import time
import random
inf=float('inf');mod=998244353;Mod=10**9+7
#move=[(1,0),(0,1),(-1,0),(0,-1)]

n=I()
m=I()
ans=[]
while m:
    ans.append(str(m%n))
    m//=n
ans=ans[::-1]
if ans==[]:
    print(0)
    exit()
print(''.join(ans))
0