結果

問題 No.2087 基数の変換
ユーザー roaris
提出日時 2022-09-30 21:22:13
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 196 bytes
コンパイル時間 161 ms
コンパイル使用メモリ 82,416 KB
実行使用メモリ 55,496 KB
最終ジャッジ日時 2024-12-22 21:56:45
合計ジャッジ時間 3,838 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 49 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

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

N = int(input())
M = int(input())
l = []

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

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