結果

問題 No.646 逆ピラミッド
ユーザー aaaaasatoriaaaaasatori
提出日時 2018-02-09 22:38:34
言語 Java21
(openjdk 21)
結果
AC  
実行時間 199 ms / 2,000 ms
コード長 297 bytes
コンパイル時間 3,460 ms
コンパイル使用メモリ 74,576 KB
実行使用メモリ 42,292 KB
最終ジャッジ日時 2024-04-17 05:07:15
合計ジャッジ時間 5,480 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
40,164 KB
testcase_01 AC 199 ms
42,292 KB
testcase_02 AC 132 ms
41,308 KB
testcase_03 AC 171 ms
42,152 KB
testcase_04 AC 169 ms
41,788 KB
testcase_05 AC 150 ms
41,608 KB
testcase_06 AC 185 ms
42,164 KB
testcase_07 AC 123 ms
40,216 KB
testcase_08 AC 113 ms
41,524 KB
testcase_09 AC 129 ms
41,376 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