京セラプログラミングコンテスト2021(AtCoder Beginner Contest 200)
翻译中…
Problem Statement
翻译中…
You are given an integer $N$.
Do the following operation $K$ times on it and print the resulting integer.
翻译中…
- If
$N$is a multiple of$200$, divide it by$200$. - Otherwise, see
$N$as a string and append$200$to the end of it. - For example,
$7$would become$7200$and$1234$would become$1234200$.
翻译中…
Constraints
翻译中…
- All values in input are integers.
$1 \le N \le 10^5$$1 \le K \le 20$
翻译中…
Input
翻译中…
Input is given from Standard Input in the following format:
翻译中…
N K
翻译中…
Output
翻译中…
Print the answer as an integer.
翻译中…
样例
Input #1
2021 4
Output #1
50531
Applying the operation on $N=2021$ results in $N$ becoming $2021 \rightarrow 2021200 \rightarrow 10106 \rightarrow 10106200 \rightarrow 50531$.
Input #2
40000 2
Output #2
1
Input #3
8691 20
Output #3
84875488281
The answer may not fit into the signed $32$-bit integer type.
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。