結果
| 問題 |
No.2087 基数の変換
|
| コンテスト | |
| ユーザー |
Forested
|
| 提出日時 | 2022-09-30 21:25:49 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 36 ms / 2,000 ms |
| コード長 | 170 bytes |
| コンパイル時間 | 89 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-12-22 22:13:19 |
| 合計ジャッジ時間 | 2,988 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 51 |
ソースコード
n = int(input())
m = int(input())
if m == 0:
print(0)
exit(0)
ans = []
while m > 0:
ans.append(m % n)
m //= n
for c in reversed(ans):
print(c, end='')
Forested