結果

問題 No.2087 基数の変換
ユーザー 👑 KazunKazun
提出日時 2022-10-01 00:21:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 37 ms / 2,000 ms
コード長 198 bytes
コンパイル時間 265 ms
コンパイル使用メモリ 82,080 KB
実行使用メモリ 53,828 KB
最終ジャッジ日時 2024-06-02 08:00:09
合計ジャッジ時間 3,264 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
52,276 KB
testcase_01 AC 35 ms
53,192 KB
testcase_02 AC 34 ms
52,060 KB
testcase_03 AC 33 ms
51,760 KB
testcase_04 AC 33 ms
51,892 KB
testcase_05 AC 35 ms
53,132 KB
testcase_06 AC 35 ms
52,680 KB
testcase_07 AC 35 ms
52,964 KB
testcase_08 AC 35 ms
52,772 KB
testcase_09 AC 34 ms
52,492 KB
testcase_10 AC 36 ms
53,068 KB
testcase_11 AC 34 ms
52,020 KB
testcase_12 AC 34 ms
52,384 KB
testcase_13 AC 32 ms
52,620 KB
testcase_14 AC 33 ms
52,888 KB
testcase_15 AC 33 ms
52,896 KB
testcase_16 AC 33 ms
51,940 KB
testcase_17 AC 32 ms
52,076 KB
testcase_18 AC 32 ms
53,040 KB
testcase_19 AC 33 ms
53,048 KB
testcase_20 AC 33 ms
52,408 KB
testcase_21 AC 33 ms
52,824 KB
testcase_22 AC 34 ms
52,632 KB
testcase_23 AC 34 ms
52,016 KB
testcase_24 AC 34 ms
52,216 KB
testcase_25 AC 33 ms
52,616 KB
testcase_26 AC 35 ms
52,560 KB
testcase_27 AC 32 ms
53,192 KB
testcase_28 AC 33 ms
52,620 KB
testcase_29 AC 32 ms
53,468 KB
testcase_30 AC 32 ms
52,416 KB
testcase_31 AC 33 ms
53,716 KB
testcase_32 AC 34 ms
53,828 KB
testcase_33 AC 34 ms
53,220 KB
testcase_34 AC 32 ms
53,320 KB
testcase_35 AC 32 ms
52,248 KB
testcase_36 AC 33 ms
51,820 KB
testcase_37 AC 32 ms
53,232 KB
testcase_38 AC 33 ms
52,308 KB
testcase_39 AC 33 ms
53,444 KB
testcase_40 AC 33 ms
52,380 KB
testcase_41 AC 32 ms
53,108 KB
testcase_42 AC 32 ms
52,616 KB
testcase_43 AC 33 ms
53,212 KB
testcase_44 AC 33 ms
51,948 KB
testcase_45 AC 34 ms
52,808 KB
testcase_46 AC 34 ms
52,156 KB
testcase_47 AC 35 ms
52,932 KB
testcase_48 AC 33 ms
52,344 KB
testcase_49 AC 33 ms
52,064 KB
testcase_50 AC 33 ms
51,760 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
    N=int(input())
    M=int(input())

    if M==0:
        return "0"

    X=[]
    while M>0:
        X.append(M%N)
        M//=N
    return "".join(map(str,X[::-1]))

print(solve())
0