AtCoder Beginner Contest 100
翻译中…
Problem Statement
翻译中…
Today, the memorable AtCoder Beginner Contest 100 takes place. On this occasion, Takahashi would like to give an integer to Ringo.
As the name of the contest is AtCoder Beginner Contest 100, Ringo would be happy if he is given a positive integer that can be divided by $100$ exactly $D$ times.
翻译中…
Find the $N$-th smallest integer that would make Ringo happy.
翻译中…
Constraints
翻译中…
$D$is$0$,$1$or$2$.$N$is an integer between$1$and$100$(inclusive).
翻译中…
Input
翻译中…
Input is given from Standard Input in the following format:
翻译中…
D N
翻译中…
Output
翻译中…
Print the $N$-th smallest integer that can be divided by $100$ exactly $D$ times.
翻译中…
样例
Input #1
0 5
Output #1
5
The integers that can be divided by $100$ exactly $0$ times (that is, not divisible by $100$) are as follows: $1$, $2$, $3$, $4$, $5$, $6$, $7$, ...
Thus, the $5$-th smallest integer that would make Ringo happy is $5$.
Input #2
1 11
Output #2
1100
The integers that can be divided by $100$ exactly once are as follows: $100$, $200$, $300$, $400$, $500$, $600$, $700$, $800$, $900$, $1 \ 000$, $1 \ 100$, ...
Thus, the integer we are seeking is $1 \ 100$.
Input #3
2 85
Output #3
850000
The integers that can be divided by $100$ exactly twice are as follows: $10 \ 000$, $20 \ 000$, $30 \ 000$, ...
Thus, the integer we are seeking is $850 \ 000$.
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。