#abc200b. B - 200th ABC-200
B - 200th ABC-200
Score : points
## 问题描述
给定一个整数 $N$。
对其执行以下操作 $K$ 次,并打印出最终的整数。
- 如果 $N$ 是 $200$ 的倍数,则将它除以 $200$。
- 否则,将 $N$ 视为字符串并在其末尾添加 $200$。
- 例如,$7$ 将变为 $7200$,而 $1234$ 将变为 $1234200$。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
You are given an integer .
Do the following operation times on it and print the resulting integer.
- If is a multiple of , divide it by .
- Otherwise, see as a string and append to the end of it.
- For example, would become and would become .
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the answer as an integer.
Sample Input 1
2021 4
Sample Output 1
50531
Applying the operation on results in becoming $2021 \rightarrow 2021200 \rightarrow 10106 \rightarrow 10106200 \rightarrow 50531$.
Sample Input 2
40000 2
Sample Output 2
1
Sample Input 3
8691 20
Sample Output 3
84875488281
The answer may not fit into the signed -bit integer type.
update @ 2024/3/10 09:11:23