結果

問題 No.2087 基数の変換
ユーザー 無貌
提出日時 2024-09-06 18:13:28
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 30 ms / 2,000 ms
コード長 133 bytes
コンパイル時間 328 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-09-06 18:13:32
合計ジャッジ時間 3,731 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 51
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
M = int(input())
ans = ""

i = 0
while M >= N:
  M, r = divmod(M, N)
  ans += str(r)

ans += str(M)
print(ans[::-1])
0