No.646 Inverted Pyramid
問題文最終更新日: 2026-06-25 02:35:31
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 183
(順位表)
の他の問題:
Problem Statement
Given an integer $N$, output a left-aligned inverted pyramid with $N$ levels, made up of the number $N$. Refer to the test cases for the shape of the pyramid and other details.
Input
N
$ 1\le N \le 100$
Output
Print a newline at the end.
Sample
Sample 1
Input
5
Output
55555 5555 555 55 5
Build an inverted pyramid with 5 levels using the number 5.
Sample 2
Input
1
Output
1
There may also be just 1 level.
Sample 3
Input
10
Output
10101010101010101010 101010101010101010 1010101010101010 10101010101010 101010101010 1010101010 10101010 101010 1010 10
Build a pyramid with 10 levels using the number 10.
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。
gotutiyan