AtCoder Grand Contest 066
翻译中…
Problem Statement
翻译中…
For a positive integer $x$, let $f(x)$ denote the sum of its digits. For example, $f(331)=3+3+1=7$, $f(2024)=2+0+2+4=8$, and $f(1)=1$.
翻译中…
You are given a positive integer $N$. Print a positive integer $x$ that satisfies all of the following conditions:
翻译中…
$1\leq x< 10^{10000}$$f(2^{i-1}x)>f(2^ix)$for all integers$1\leq i\leq N$.
翻译中…
Constraints
翻译中…
$1\leq N\leq 50$
翻译中…
Input
翻译中…
The input is given from Standard Input in the following format:
翻译中…
N
翻译中…
Output
翻译中…
Print a positive integer $x$ that satisfies the conditions. If multiple positive integers $x$ satisfy the conditions, any of them will be accepted.
翻译中…
样例
Input #1
3
Output #1
89
For $x=89$, it follows from $f(x)=17$, $f(2x)=16$, $f(4x)=14$, and $f(8x)=10$ that $f(x)>f(2x)>f(4x)>f(8x)$, satisfying the conditions.
Some other integers that satisfy the conditions are $x=539$ and $x=890$.
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。