No.499 7進数変換
問題文最終更新日: 2026-06-29 15:03:38
English (AI translation)
Base 7 Conversion
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Show the original
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Show the original
yukicoder contest 160
(順位表)
の他の問題:
Problem Statement
You are given an integer $N$. Output the integer $N$. However, while the input is given in base $10$ notation, the output must be in base $7$ notation.
Input
N
The input $N$ satisfies $0 \le N \le {(10^9)}_{10}$.
Output
N
Print a newline at the end.
Sample
Sample 1
Input
18
Output
24
${(18)}_{10} = {(24)}_7$.
Sample 2
Input
7
Output
10
${(7)}_{10} = {(10)}_7$.
Sample 3
Input
1000000000
Output
33531600616
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。