結果
問題 | No.2087 基数の変換 |
ユーザー |
![]() |
提出日時 | 2022-09-30 21:55:55 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 785 bytes |
コンパイル時間 | 208 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 47,088 KB |
最終ジャッジ日時 | 2024-12-22 23:32:08 |
合計ジャッジ時間 | 35,144 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 49 WA * 2 |
ソースコード
from cgitb import reset from collections import defaultdict from functools import lru_cache from sys import flags, stdin import math import re import queue from tokenize import String import typing import itertools import bisect import statistics import numpy as np # from numpy.core.function_base import _needs_add_docstring # from numpy.core.numeric import outer input = stdin.readline MOD = 1000000007 INF = 122337203685477580 def Base_10_to_n(X, n): X_dumy = X out = '' while X_dumy > 0: out = str(X_dumy % n)+out X_dumy = int(X_dumy/n) return out def solve(): n = int(input().rstrip()) m = int(input().rstrip()) # m is to change to base n p = Base_10_to_n(m, n) print(p) return if __name__ == '__main__': solve()