結果

問題 No.2087 基数の変換
ユーザー roarisroaris
提出日時 2022-09-30 21:23:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 95 ms / 2,000 ms
コード長 230 bytes
コンパイル時間 426 ms
コンパイル使用メモリ 87,088 KB
実行使用メモリ 71,908 KB
最終ジャッジ日時 2023-08-24 14:29:19
合計ジャッジ時間 6,935 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 91 ms
71,556 KB
testcase_01 AC 91 ms
71,864 KB
testcase_02 AC 92 ms
71,656 KB
testcase_03 AC 92 ms
71,560 KB
testcase_04 AC 91 ms
71,904 KB
testcase_05 AC 92 ms
71,500 KB
testcase_06 AC 93 ms
71,532 KB
testcase_07 AC 92 ms
71,536 KB
testcase_08 AC 93 ms
71,456 KB
testcase_09 AC 92 ms
71,536 KB
testcase_10 AC 92 ms
71,756 KB
testcase_11 AC 91 ms
71,512 KB
testcase_12 AC 91 ms
71,672 KB
testcase_13 AC 93 ms
71,496 KB
testcase_14 AC 91 ms
71,564 KB
testcase_15 AC 91 ms
71,524 KB
testcase_16 AC 93 ms
71,560 KB
testcase_17 AC 92 ms
71,584 KB
testcase_18 AC 92 ms
71,376 KB
testcase_19 AC 92 ms
71,428 KB
testcase_20 AC 93 ms
71,672 KB
testcase_21 AC 92 ms
71,740 KB
testcase_22 AC 92 ms
71,708 KB
testcase_23 AC 93 ms
71,492 KB
testcase_24 AC 91 ms
71,648 KB
testcase_25 AC 91 ms
71,492 KB
testcase_26 AC 95 ms
71,512 KB
testcase_27 AC 92 ms
71,588 KB
testcase_28 AC 91 ms
71,560 KB
testcase_29 AC 91 ms
71,496 KB
testcase_30 AC 94 ms
71,496 KB
testcase_31 AC 93 ms
71,664 KB
testcase_32 AC 95 ms
71,496 KB
testcase_33 AC 92 ms
71,508 KB
testcase_34 AC 91 ms
71,500 KB
testcase_35 AC 94 ms
71,908 KB
testcase_36 AC 92 ms
71,844 KB
testcase_37 AC 93 ms
71,608 KB
testcase_38 AC 90 ms
71,636 KB
testcase_39 AC 92 ms
71,736 KB
testcase_40 AC 92 ms
71,660 KB
testcase_41 AC 91 ms
71,716 KB
testcase_42 AC 91 ms
71,564 KB
testcase_43 AC 95 ms
71,652 KB
testcase_44 AC 93 ms
71,588 KB
testcase_45 AC 94 ms
71,564 KB
testcase_46 AC 93 ms
71,532 KB
testcase_47 AC 91 ms
71,588 KB
testcase_48 AC 91 ms
71,496 KB
testcase_49 AC 93 ms
71,588 KB
testcase_50 AC 93 ms
71,588 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline
from collections import *

N = int(input())
M = int(input())

if M==0:
    exit(print(0))
    
l = []

while M:
    l.append(M%N)
    M //= N

l.reverse()
ans = ''.join(map(str, l))
print(ans)
0