結果
| 問題 | No.2087 基数の変換 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-09-30 21:21:49 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 562 bytes |
| 記録 | |
| コンパイル時間 | 192 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 56,064 KB |
| 最終ジャッジ日時 | 2024-12-22 21:55:04 |
| 合計ジャッジ時間 | 3,998 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 49 WA * 2 |
ソースコード
'''input
'''
import sys
import math
from bisect import bisect_right, bisect_left
from itertools import *
from collections import *
from heapq import heapify, heappush, heappop
import random
inf = float('inf')
# mod = 1000000007
# mod = 998244353
input = lambda: sys.stdin.readline().rstrip()
def error(*args, sep=' ', end='\n'):
print(*args, sep=sep, end=end, file=sys.stderr)
# sys.setrecursionlimit(10**6)
# ----------------------- #
n = int(input())
m = int(input())
ans = []
while m:
ans.append(m % n)
m //= n
print(''.join(map(str, ans[::-1])))