結果
問題 | No.2087 基数の変換 |
ユーザー |
|
提出日時 | 2022-09-30 21:28:20 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 295 bytes |
コンパイル時間 | 282 ms |
コンパイル使用メモリ | 82,236 KB |
実行使用メモリ | 57,376 KB |
最終ジャッジ日時 | 2024-12-22 22:21:28 |
合計ジャッジ時間 | 4,162 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 49 WA * 2 |
ソースコード
from collections import * from itertools import * from functools import * from heapq import * import sys,math input = sys.stdin.readline N = int(input()) M = int(input()) res = M b = N tmp = [] while res>0: t = res%b tmp.append(str(t)) res = res//b tmp.reverse() print(''.join(tmp))