No.3447 Power Projection(constant)
問題文最終更新日: 2026-02-18 23:04:18
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
yukicoder contest 493
(順位表)
の他の問題:
Problem Statement
You are given positive integers $N, A, B$.
For each $i = 0, 1, \dots, N - 1$, find $AB^{i}$.
Constraints
- $1\leq N\leq 9$
- $1\leq A\leq 9$
- $1\leq B\leq 9$
- All input values are integers.
Input
$N$ $A$ $B$
Output
Print $N$ lines.
On the $i + 1$-th line, print $AB^{i}$.
Sample
Sample 1
Input
1 6 7
Output
6
Since $AB^{0} = 6\cdot 7^{0} = 6$, print $6$.
Sample 2
Input
9 2 4
Output
2 8 32 128 512 2048 8192 32768 131072
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。
noya2