結果
| 問題 |
No.2087 基数の変換
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-09-30 21:44:24 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 44 ms / 2,000 ms |
| コード長 | 160 bytes |
| コンパイル時間 | 931 ms |
| コンパイル使用メモリ | 82,212 KB |
| 実行使用メモリ | 52,480 KB |
| 最終ジャッジ日時 | 2024-12-22 23:05:50 |
| 合計ジャッジ時間 | 5,108 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 51 |
ソースコード
N, M = int(input()), int(input())
if M == 0:
print(0)
exit()
res = []
while M > 0:
res.append(str(M % N))
M //= N
print(''.join(reversed(res)))