No.3778 pow2!!pow2!!pow2!!
問題文最終更新日: 2026-10-24 10:07:35
English (AI translation)
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.
Back to the original
Problem Statement
You are given a positive integer $N$.
Let $M$ be the number of digits of $N$.
Starting with the initial value $ans = N$, repeat the following operation $M-1$ times.
- Update $ans$ to $ans \times 10^M + N$.
Output $ans$ after the operations are finished.
Input
$N$
The input satisfies the following constraints.
- $1 \leq N < 10^{100}$
Output
Output $ans$ after the operations are finished.
Print a newline at the end.
Sample
Sample 1
Input
1
Output
1
Sample 2
Input
12
Output
1212
Sample 3
Input
123
Output
123123123
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。