結果

問題 No.2087 基数の変換
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2022-09-30 21:29:24
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 110 ms / 2,000 ms
コード長 328 bytes
コンパイル時間 519 ms
コンパイル使用メモリ 87,068 KB
実行使用メモリ 72,940 KB
最終ジャッジ日時 2023-08-24 14:46:21
合計ジャッジ時間 7,618 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 110 ms
72,440 KB
testcase_01 AC 106 ms
72,456 KB
testcase_02 AC 105 ms
72,812 KB
testcase_03 AC 107 ms
72,404 KB
testcase_04 AC 105 ms
72,408 KB
testcase_05 AC 106 ms
72,580 KB
testcase_06 AC 107 ms
72,580 KB
testcase_07 AC 107 ms
72,924 KB
testcase_08 AC 107 ms
72,740 KB
testcase_09 AC 107 ms
72,484 KB
testcase_10 AC 106 ms
72,868 KB
testcase_11 AC 108 ms
72,612 KB
testcase_12 AC 107 ms
72,484 KB
testcase_13 AC 107 ms
72,464 KB
testcase_14 AC 105 ms
72,724 KB
testcase_15 AC 107 ms
72,456 KB
testcase_16 AC 106 ms
72,792 KB
testcase_17 AC 107 ms
72,496 KB
testcase_18 AC 106 ms
72,532 KB
testcase_19 AC 106 ms
72,620 KB
testcase_20 AC 106 ms
72,940 KB
testcase_21 AC 107 ms
72,812 KB
testcase_22 AC 107 ms
72,456 KB
testcase_23 AC 107 ms
72,624 KB
testcase_24 AC 108 ms
72,488 KB
testcase_25 AC 106 ms
72,640 KB
testcase_26 AC 106 ms
72,812 KB
testcase_27 AC 106 ms
72,628 KB
testcase_28 AC 107 ms
72,716 KB
testcase_29 AC 108 ms
72,632 KB
testcase_30 AC 107 ms
72,808 KB
testcase_31 AC 107 ms
72,608 KB
testcase_32 AC 108 ms
72,456 KB
testcase_33 AC 107 ms
72,460 KB
testcase_34 AC 106 ms
72,808 KB
testcase_35 AC 105 ms
72,588 KB
testcase_36 AC 105 ms
72,716 KB
testcase_37 AC 107 ms
72,508 KB
testcase_38 AC 104 ms
72,500 KB
testcase_39 AC 105 ms
72,404 KB
testcase_40 AC 106 ms
72,456 KB
testcase_41 AC 107 ms
72,504 KB
testcase_42 AC 103 ms
72,796 KB
testcase_43 AC 106 ms
72,632 KB
testcase_44 AC 105 ms
72,716 KB
testcase_45 AC 104 ms
72,720 KB
testcase_46 AC 103 ms
72,448 KB
testcase_47 AC 105 ms
72,580 KB
testcase_48 AC 105 ms
72,488 KB
testcase_49 AC 105 ms
72,880 KB
testcase_50 AC 105 ms
72,636 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import *
from itertools import *
from functools import *
from heapq import *
import sys,math
input = sys.stdin.readline

N = int(input())
M = int(input())
if M==0:
    print(0)
    exit()
res = M
b = N
tmp = []
while res>0:
    t = res%b
    tmp.append(str(t))
    res = res//b
tmp.reverse()
print(''.join(tmp))
0