結果

問題 No.646 逆ピラミッド
ユーザー aikon_marimoaikon_marimo
提出日時 2018-02-10 21:47:04
言語 Java21
(openjdk 21)
結果
AC  
実行時間 199 ms / 2,000 ms
コード長 306 bytes
コンパイル時間 2,155 ms
コンパイル使用メモリ 73,964 KB
実行使用メモリ 42,332 KB
最終ジャッジ日時 2024-04-24 02:07:35
合計ジャッジ時間 4,539 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 142 ms
41,696 KB
testcase_01 AC 199 ms
42,332 KB
testcase_02 AC 133 ms
41,472 KB
testcase_03 AC 194 ms
42,196 KB
testcase_04 AC 172 ms
41,900 KB
testcase_05 AC 156 ms
41,380 KB
testcase_06 AC 198 ms
42,136 KB
testcase_07 AC 123 ms
40,172 KB
testcase_08 AC 133 ms
41,744 KB
testcase_09 AC 138 ms
41,416 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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