結果

問題 No.646 逆ピラミッド
ユーザー aaaaasatoriaaaaasatori
提出日時 2018-02-09 22:38:34
言語 Java21
(openjdk 21)
結果
AC  
実行時間 190 ms / 2,000 ms
コード長 297 bytes
コンパイル時間 4,391 ms
コンパイル使用メモリ 72,764 KB
実行使用メモリ 56,276 KB
最終ジャッジ日時 2023-07-30 02:58:33
合計ジャッジ時間 6,743 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
55,500 KB
testcase_01 AC 190 ms
56,080 KB
testcase_02 AC 123 ms
55,640 KB
testcase_03 AC 177 ms
55,988 KB
testcase_04 AC 168 ms
56,028 KB
testcase_05 AC 160 ms
56,276 KB
testcase_06 AC 180 ms
56,048 KB
testcase_07 AC 125 ms
55,384 KB
testcase_08 AC 124 ms
55,672 KB
testcase_09 AC 131 ms
55,772 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No646 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int x = N;
		for(int i = 0;i < N;i++) {
			for(int j = x;j > 0;j--) {
				System.out.print(N);
			}
			System.out.println();
			x--;
		}
	}
}
0