結果
| 問題 | No.2087 基数の変換 |
| コンテスト | |
| ユーザー |
Moss_Local
|
| 提出日時 | 2022-09-30 21:55:55 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 785 bytes |
| 記録 | |
| コンパイル時間 | 538 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 20,472 KB |
| 最終ジャッジ日時 | 2026-05-29 02:21:11 |
| 合計ジャッジ時間 | 18,902 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 51 |
ソースコード
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()
Moss_Local